home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1998 June / Software of the Month Club 1998 June.iso / pc / dos / edu / mapit20 / mapit.txt < prev    next >
Text File  |  1998-04-15  |  219KB  |  4,938 lines

  1.  
  2.  
  3.  
  4.                    Shareware MAPIT
  5.        The Professional World Mapping System with 
  6.                 Something for Everyone.
  7.  
  8.                        Version 2.0
  9.  
  10.  
  11.          Copyright 1992, 1994, 1997 John B. Allison.
  12.  
  13.                       Allison Software
  14.                        166 Shady Lane
  15.                      Apollo, PA 15613 USA
  16.  
  17.   
  18.           e-mail:  jallison@kiski.net
  19.           homepage:  http://home.kiski.net/~jallison/mapit.htm
  20.  
  21. This Plain Text version of the manual has been stripped of all 
  22. graphics to reduce its size.  Lacking all formatting, it is 
  23. pretty terrible to read.  See MAPIT7.DOC (Word 7), MAPIT.DOC
  24. (WordPad W95), or order the system and get the real manual<g>.
  25.  
  26.  
  27.  
  28.  
  29. MAPIT is a trademark of Allison Software.  
  30. MAPIT and its associated programs, data, and documentation are 
  31. Copyright *1992 - 1997 John B. Allison and may not be duplicated or 
  32. distributed without the express written consent of the author.
  33. Microsoft, MS, and MS-DOS are registered trademarks, Windows and 
  34. Windows 95 are trademarks of Microsoft Corporation.
  35. CompuServe is a registered trademark of CompuServe, Inc.
  36. Hewlett-Packard, HP, and LaserJet are registered trademarks of 
  37. Hewlett-Packard Company.
  38. Pentium is a registered trademark of Intel Corporation.
  39.  
  40.                          MAPIT OVERVIEW
  41.                Your Graphics Notepad on the World
  42.  
  43. MAPIT is an integrated global mapping and digital display system for 
  44. work, school, or fun.  MAPIT provides the breadth and depth of world 
  45. mapping support necessary to meet a broad range of end-user needs.  
  46. MAPIT - The world mapping system with something for everyone.
  47.  
  48. CONTENTS
  49. MAPIT OVERVIEW    i
  50. UP AND RUNNING    1
  51. Packaging:    1
  52. Installation:    1
  53. A Quick Demo:    2
  54. MAPIT and Your Computer:    2
  55. Making Maps:    4
  56. Important General Features:    5
  57. Running MAPIT:    9
  58. How Do I .?    9
  59. MAPIT Gotcha's:    16
  60. Problems and Solutions:    16
  61. MAPIT Tips:    18
  62. MAPIT    19
  63. The MAPIT Command Line:    19
  64. Screen Layout:    20
  65. Menu Commands:    20
  66. Working with MAPIT Files:    50
  67. FIGEDIT    54
  68. Menu Commands:    54
  69. Tips:    57
  70. GEOCODE    58
  71. The GEOCODE Command Line:    58
  72. Definition File:    59
  73. Example Output:    63
  74. Example Definition File:    63
  75. Advanced Considerations:    64
  76. GEOTOENT    66
  77. The GEOTOENT Command Line:    66
  78. Definition File:    67
  79. Example Output:    69
  80. Example Definition File:    69
  81. Advanced Considerations:    70
  82. GEOTOMP1    72
  83. The GEOTOMP1 Command Line:    72
  84. Definition File:    73
  85. Example Output:    77
  86. Example Definition File:    79
  87. Advanced Considerations:    79
  88. GPS    80
  89. GPS Overview:    80
  90. GPS Installation:    80
  91. GPS's Menus:    81
  92. Sample Output:    84
  93. dB File Format:    85
  94. Error:    86
  95. Precision versus Accuracy:    86
  96. Hardware Connections:    87
  97. Supported NMEA 0183 Version 2.00 Sentences:    87
  98. Problems and Solutions:    88
  99. MP1TOMP3    89
  100. NMETOMP1    91
  101. The NMETOMP1 Command Line:    91
  102. Example Input/Output:    93
  103. Example Data Reduction Session:    95
  104. SIMULATE    97
  105. The SIMULATE Command Line:    97
  106. Script File:    98
  107. Example Output:    102
  108. Example Simulation Script File:    103
  109. Demonstration Scripts:    103
  110. Advanced Considerations:    107
  111. APPENDIX A - FEATURE/LAYER ASSIGNMENTS    108
  112. By Feature:    108
  113. By Layer:    109
  114. APPENDIX C - PEN DEFINITONS    112
  115. APPENDIX E - STANDARD LAT/LON NOTATION    114
  116. INDEX    117
  117.  
  118. UP AND RUNNING
  119.  
  120. Packaging:
  121.  
  122. Shareware MAPIT 2 is distributed as four zipped files.  You need only
  123. the first to test drive this product.  The other files demonstrate 
  124. additional data or ancillary programs.
  125.         MAPIT20A (1.4MB) -  MAPIT 2 and data good for zooms 1 to 2.
  126.         MAPIT20B (1.2MB) -  other exes, examples, and documentation.
  127.         MAPIT20C (0.8MB) -  plate tectonics data, zooms 1 - 6.
  128.         MAPIT20D (1.6MB) -  general data for zooms 2 - 6.
  129. This data, when fully expanded, requires up to MB of disk space.
  130.  
  131. Installation:
  132.  
  133. To install and run MAPIT properly, you must preserve the file
  134. structure saved in the zip.  To do this, unzip all the MAPIT zips using 
  135. the "-d" option.
  136.         C:\> pkunzip  MAPIT20x  -d
  137.  
  138. Doing this to all four zips will give you the following directory structure:
  139.         MAPIT          -  executables and data
  140.                 DBFS      -  point data .dbf's
  141.                 DBQS      -  queries and supporting .dbf's
  142.                 EXAMPLES  -  supporting data for examples
  143.  
  144. Punt?
  145.  
  146. Unfortunately to get to the point where you can read this text, you may have
  147. already unzipped MAPIT without the -d option.  Copy the four original .ZIP 
  148. files to the top of your drive
  149.     C:>  move  *.zip  \
  150.     (If your version of DOS doesn't support move, use copy.)
  151. delete or otherwise clean up the unzipped files, then go back to the 
  152. instructions above and unzip all four (or as many as you have) using the -d 
  153. option.  The MAPIT and all other directories will be created for you 
  154. automatically.
  155.  
  156. Change to the MAPIT directory
  157.     C:>  cd mapit
  158.  
  159. If you've downloaded the C and D zips, you'll need to combine the .mp3 data 
  160. files together using the combine batch file. 
  161.     C:\MAPIT>  combine
  162.  
  163. Run MAPIT by entering "mapit":
  164.     C:\MAPIT>  mapit
  165.  
  166. MAPIT will open the DEMO.MP3 file and use it as data.  Furthermore, MAPIT 
  167. will open EXTENDED.MP3 to display the Columbus Demo.  When you are tired 
  168. of it, delete EXTENDED.MP3.  Like a dismembered star fish, it will be 
  169. regenerated as a null length file the next time you run MAPIT.
  170.  
  171. A Quick Demo:
  172.  
  173. MAPIT comes up in the Standard World View the first time you run.  
  174. <Tab> to zoom in on the Gulf of Mexico.  (You are tabing backward 
  175. through a two-level history.)  <Tab> again to zoom in on Florida.  Click 
  176. to check "DISPLAY/All Features" and click "ZOOM/To Std World" to 
  177. return to the beginning but with maximum features displayed. Again 
  178. <Tab> twice.  After you've cycled through this simple demonstration, 
  179. you may want to reduce the number of Features DISPLAYed and begin 
  180. experimenting by "ZOOMing/In by Corners" and using the <Esc>, <Pg 
  181. Up/Dn>, and arrow keys as outlined in MAPIT.DOC.
  182.  
  183. To look up locations in MAPIT's database, select TOOLS/Database 
  184. /Lookup/City Gazetteer, enter "Saint" in City, click on Lookup/More 
  185. twice, select Saint Petersburg, FL from the list of matches, and click on 
  186. Return & Display.  MAPIT will redisplay centered on that loation.  
  187. <Esc> the redisplay and ZOOM/To Factor x entering 300.
  188.  
  189. MAPIT and Your Computer:
  190.  
  191. MAPIT requires a properly tuned, high-performance computer.  A
  192. Pentium 166 is great.  A 486/66 DX2 is marginal.  The 286 instruction 
  193. set is required.  Although technically not required, math coprocessor 
  194. capabilities are essential because of MAPIT's compute-intensive 
  195. nature.
  196.  
  197. You may want to add the following line to your AUTOEXEC.BAT file so
  198. that MAPIT knows which time zone you are in.
  199.     SET  TZ=EST5EDT
  200.  
  201. This notifies DOS that you are in the Eastern Standard Time zone 5
  202. hours offset from GMT and that Eastern Daylight Time is observed.  
  203. Without this environmental variable, DOS assumes it is back in 
  204. Redmond, Washington in the Pacific Time Zone, center of the 
  205. computing world.  See Appendix D for further discussion.
  206.  
  207. Multi-Tasking
  208. Today's powerful computers and advanced operating systems allow 
  209. users to work among several concurrently running programs.  Working 
  210. simultaneously with MAPIT and a paint or word processing program is 
  211. possible even when running MAPIT from within a Windows DOS 
  212. session.  Switch between MAPIT and your other program(s) by using 
  213. the ALT-TAB task switching sequence.  (Hold the ALT key down while 
  214. clicking the TAB key until the desired program's banner comes up.)  
  215. You needn't quit MAPIT each time you want to switch to the other 
  216. program. 
  217. Windows 95
  218. MAPIT works well with Windows 95 and its newer, faster CD-ROM 
  219. drivers and bigger buffers.  Because Windows 95 automatically installs 
  220. a mouse driver for normal DOS sessions, you shouldn't have to be 
  221. concerned with that issue.
  222. Adjust the (MS-DOS Prompt) Properties Box of the DOS session 
  223. controlling MAPIT to enable Conventional and XMS memory to Auto.  
  224. You may also want to set the working directory to C:\ or to your hard 
  225. drive's default MAPIT directory.
  226. Windows 3.1
  227. Tuning Your System
  228. MemMaker in DOS 6.0 or 6.2 generally does a good job of optimizing 
  229. memory.  MAPIT requires 475KB of memory.  More is better. To 
  230. handled its large data requirements, MAPIT may make use of XMS, 
  231. EMS, or disk memory (in that order) for temporary virtual storage. If 
  232. your system supports XMS (normally by loading HIMEM.SYS in your 
  233. CONFIG.SYS), MAPIT does not require you to load EMS via 
  234. EMM386.EXE. 
  235. For a significant performance boost, use disk cache software such as 
  236. SMARTDrive. The disk cache must be of adequate size, at least 500K, if 
  237. it is to be of any use. If you notice a lot of disk activity when 
  238. redisplaying a portion of the world, this is an indication that your 
  239. system will perform better with a larger disk cache.
  240. Be certain that your DOSPROMPT's PIF is set for High Graphics, Full 
  241. Screen, Background, and that Advanced Options include Uses High 
  242. Memory Area, High Graphics, Emulate Text Mode, and Retain Video 
  243. Memory.
  244. MAPIT is network ready, meaning MAPIT opens its main database 
  245. read-only. If you are installing MAPIT in a multi-computer networked 
  246. environment and are licensed to run multiple MAPIT copies, consider 
  247. placing the main database WORLD.MP3 on a single node on which 
  248. SHARE.EXE is run. The space savings can be significant
  249. Installing a Mouse (3.1 only)
  250. MAPIT requires a mouse. Unless you have a mouse physically 
  251. attached to your computer and have installed its driver, you will be 
  252. unable to operate MAPIT. You can exit MAPIT from the keyboard by 
  253. entering <CTRL>Q.
  254. Install the mouse driver by issuing the following command at the 
  255. command prompt:
  256.     > path\MOUSE        (e.g.  C:\WINDOWS\MOUSE)
  257. where path is the path to the directory containing the mouse driver.
  258. Place this command in your AUTOEXEC.BAT file so that MOUSE is 
  259. always installed when your system boots up.
  260. Caution:  Windows 3.x is smart and will show a mouse cursor without 
  261. the mouse driver's being installed.  If the cursor doesn't appear when 
  262. you run MAPIT, <CTRL>Q out and try to edit a file with the standard 
  263. DOS editor from the DOS prompt (e.g. EDIT AUTOEXEC.BAT).  If you 
  264. don't have a mouse cursor in EDIT, the driver isn't loaded.  Try loading 
  265. it from the DOS prompt as above, and if that works, add the same 
  266. command near the end of your AUTOEXEC.BAT but before any call to 
  267. WINdows.
  268. Making Maps:
  269. Although MAPIT doesn't directly support a large variety of output 
  270. devices, you can produce simple as well as publication-quality mapping 
  271. output.
  272. Screen Capture
  273. Windows enables screen capture to the clip board via the Print Screen 
  274. key. Paste (<Ctrl>V) the image into Paintbrush or Paint, standard 
  275. Windows 3 and 95 applications.  Change the black background to white 
  276. (and other colors to their compliments) with Paintbrush's PICK/Inverse 
  277. of Paint's Image/Invert Colors option.  After prettying up the image in 
  278. your graphics program, print it or insert it into your word processing 
  279. document.
  280. .PCX Files
  281. A more controlled way of capturing screen images from MAPIT is to 
  282. select the TOOLS/.PCX menu items and save the images to .PCX files.  
  283. MAPIT`s .PCX command allows you to invert the black background to 
  284. white first, if you so desire.  You can save the entire screen including 
  285. the menu heading and footer, just the mapping area, or a selected 
  286. rectangle from within the mapping area to a file whose name you 
  287. choose and later import these files into your graphics or word processor 
  288. by selecting the PCX filter associated with the File/Open command.
  289. HP-GL/2 Output
  290. Hewlett Packard's Graphics Language/2 provides the most detailed 
  291. output possible.  Unlike the .PCX format which is limited to the 
  292. resolution of your screen, HP-GL/2 is a vector format output limited 
  293. only by the resolution of MAPIT's underlying database and the 
  294. resolution of your laser printer or pen plotting device.  MAPIT directs 
  295. this output to either your printer/plotter attached to the PRN port or to 
  296. a .HGL file.  If, for instance, you want to import HP-GL/2 input into a 
  297. Microsoft Word for Windows document, first produce the file from 
  298. within MAPIT, then, from within Word, select Insert/Picture setting 
  299. the List Files of Type: option to HP Graphics Language (*.hgl).
  300. Important General Features:
  301. Mousing
  302. You can use the mouse in two different ways:
  303. *    Dragging - Some selections (for example, Zoom by Corners) 
  304. require pressing the left button to establish the starting corner or 
  305. position and, with the button still depressed, dragging the cursor 
  306. diagonally to the opposite corner or position to be measured before 
  307. releasing the button. If, when a drag is required, you press and 
  308. release at the same point, the command is aborted; nothing 
  309. happens.
  310. *    Point and click - Other activities, notably those requiring one-
  311. at-a-time point selections, look for the depression and release of the 
  312. left mouse button without any intervening movement. Sometimes 
  313. use of the right mouse button is required to signal the end of 
  314. multiple-point entry.  Sometimes the right mouse button aborts the 
  315. command.
  316. Arrow Keys 
  317. The keypad keys support simple navigation.  Pg Dn zooms you in by a 
  318. factor of 2, Pg Up zooms out by 2.  The arrow keys move you over the 
  319. map in the direction they point by half a screen.  These keys interrupt 
  320. the repaint process so that if you wish to go right a whole screen and up 
  321. one half, quickly pressing the right arrow twice and the up arrow once 
  322. immediately takes you there.  Pressing the Pg Dn key three times 
  323. zooms you in 8 fold.
  324. Bottom Status Line 
  325. From left to right the bottom status line displays the current zoom 
  326. factor, scale, map width at center screen, and latitude and longitude of 
  327. the cursor.
  328. Header Status Field
  329. The Header Status Field three different fields of information depending 
  330. upon MAPIT`s state.  The most common display is the date/time/hour-
  331. offset.  This shows the approximate (calculated) day and time and the 
  332. number of hours the time of the location pointed to by the mouse is 
  333. offset from your local time.  See Appendix D for further discussion.
  334. As MAPIT redisplays the screen, the databases MAPIT is reading 
  335. flash up in the status field.  This gives you a feel for what MAPIT is 
  336. currently doing and where it is spending its time.
  337. When you have the GPS Markers activated and there is active data 
  338. present, MAPIT displays the current date/time passed through the 
  339. GPS interface DBF.  If you are running a simulation, you can see 
  340. exactly where you are in the simulation: how it has progressed.
  341. Esc
  342. Pressing the Esc key will close a menu and will terminate the current 
  343. scan of a data base if you are repainting the screen.  Since MAPIT 
  344. scans several databases, you may have to press Esc several times or 
  345. hold it down for auto repeat to abort the entire repaint process.
  346. Tab
  347. Pressing the tab key toggles the display between the current and the 
  348. last location/zoom (except those positions defined by Zoom/To Standard 
  349. World).
  350. When running from the CD-ROM, MAPIT comes up in the standard 
  351. world view.  If you tab once, you will go to an overview of the United 
  352. States.  Tab again and you will go to an overview of Europe.  These two 
  353. views are also stored as positions A and E respectively.  (i.e., typing `E' 
  354. will take you to Europe.)
  355. Single letter or digit
  356. Pressing any single letter or digit restores the display to the location 
  357. and zoom stored at that letter or digit.  (Short for POSITION/Restore.)
  358. Left mouse button - cities, hidden text, figures
  359. Clicking with the left mouse button at a non-menu area of the screen, 
  360. causes MAPIT to scan visible databases looking for hidden text, figure, 
  361. and city objects to display, a potentially time-consuming process.  Esc 
  362. aborts this scan.
  363. Important Menu Functions
  364. The two pulldown menus new users will find most useful are the ZOOM 
  365. and the DISPLAY menus.  ZOOM implements navigation and repaint.  
  366. DISPLAY effects the visibility of layers (features).  A third menu, 
  367. TOOLS, contains Database Lookup for positioning by the City 
  368. Gazetteer.
  369. Enter - The Position Menu
  370.  
  371. MAPIT supports keyboard entry of exact coordinates although the 
  372. operational context begins as mouse entry.  Pressing the Enter key 
  373. when MAPIT is prompting for mouse input with a cross hairs brings up 
  374. the floating Position Menu for exact keyboard entry of a location.  
  375. Clicking on Loc: allows you to enter a latitude and/or a longitude in free 
  376. format.  (See Appendix E.)  You can also change the zoom or scale, 
  377. display the new location, and go back to mouse entry for visual 
  378. positioning and a possible retry with the Position Menu for fine tuning.
  379. The Position Menu is a very powerful navigational feature. Suppose you 
  380. wanted to lay in a permanent great circle between Heathrow in London 
  381. and JFK in New York.  You'd use the TOOLS/Great Circles/Point to 
  382. Point command.  But because the accuracy by mouse entry is not 
  383. sufficient at the zoom 4 level required to see both England and New 
  384. York simultaneously, zoom in on the Heathrow end first, click that 
  385. location with the mouse, and when the second mouse marker displays, 
  386. press the Enter key.  The Position Menu will pop up.  Change the zoom 
  387. level to 2 and click on Display new loc.  MAPIT will display centered on 
  388. London with New York in view.  You are still in insert mode in the 
  389. Point to Point command.  Position the mouse marker over western Long 
  390. Island and press Enter.  (Don't click the mouse yet!)  Change the zoom 
  391. to 300 and Display new loc again.  Find JFK, move the mouse marker 
  392. to it, and click the left mouse button.  The result is an accurately-
  393. positioned great circle between Heathrow and JFK
  394. The few places you can't enter exact data from keyboard are those 
  395. associated with dynamic screen repaint while you move the mouse: 
  396. dynamic great circle generation and poly-line entry, for instance.
  397. MAPIT Utilities
  398. MAPIT
  399. The primary program.
  400. DBFSORT
  401. Create an index for a new style MAPIT DBF.
  402. DBFTOMP3
  403. Convert DBF to old style .MP3 point data.
  404. FIGEDIT
  405. Create and edit MAPIT figure definitions.
  406. GARTODBF
  407. Special Garmin track file to DBF conversion.
  408. GEOCODE
  409. Add lat/lon fields to a DBF based on a matching field.
  410. GEOTOENT
  411. Geocoded DBF to MAPIT entity DBF.
  412. GEOTOMP1
  413. Geocoded DBF to .MP1 line data.
  414. GPS
  415. Windows GPS receiving program.
  416. MP1TOMP3
  417. Convert .MP1 text line data to displayable binary 
  418. format.
  419. MP3MOD
  420. Modify .MP3 data utility. 
  421. MP3TODBF
  422. Convert old style point .MP3 data to DBF.
  423. MP3TOMP1
  424. Convert .MP3 line data to text .MP1 format.
  425. NETANA
  426. Network node connecting analyzer.  
  427. NMETOMP1
  428. Permanent track output from GPS to .MP1.
  429. SIMULATE
  430. Accelerated real-time simulation of moving objects.
  431. TILEIZE
  432. Update the tile field in a new style MAPIT DBF.
  433. Help for MAPIT DOS Utilities
  434. All MAPIT-based DOS utilities including MAPIT itself support the 
  435. following command line protocols from the C: prompt.
  436. Entering / from the command line generates a complete list of calling 
  437. options. 
  438. Entering  /? generates on-line documentation of the program and its 
  439. command line arguments. 
  440. Entering  /help generates on-line documentation of the statement 
  441. syntax of the program's definition file.  Not all programs have definition 
  442. files and support the /help option.
  443. You can abbreviate command line options short of the point of 
  444. ambiguity.  MAPIT`s /noe is the same as /noextended, but /no will 
  445. induce an error message listing the ambiguous possibilities as 
  446. /noextended and /nosavefile
  447. Running MAPIT:
  448. Shareware MAPIT can be accessed with
  449.     C:>  mapit
  450. which opens DEMO.MP3 as the main file and EXTENDED.MP3 as the 
  451. extended or private output file.  If the latter is not found, MAPIT 
  452. creates a zero-length EXTENDED.MP3.
  453.     C:>  mapit  main  /extended=x
  454. opens MAIN.MP3 as the main file and X.MP3 as the extended file.
  455.     C:>  mapit  nul  /noextended
  456. starts MAPIT with no .MP3 data.
  457. How Do I .?
  458. I want to stick pins into a map.  How can MAPIT help me?
  459. You probably want to insert figures (simple line drawings) with labels 
  460. and up to a screen's worth of information hidden behind each figure 
  461. although simple stroked text might also do.  Your first question is 
  462. whether you're inserting hundreds or even thousands of entries from an 
  463. already-existing database (.DBF), or if you're going to do this one-at-at 
  464. time from the keyboard.
  465. In either case you're going to store the data in DB point entities, and 
  466. you'll have to add a record to the scan table (see below). Because the 
  467. CD-ROM is read-only, you must use a scan table residing on your hard 
  468. drive which implies you will want to use the mycopy/mymap technique 
  469. for starting MAPIT from your hard drive described on the first page of 
  470. this section and change the scan table reference as outlined below.
  471. If you're converting a lot of data from a dBASE file:  You must geocode 
  472. the file (see below) and convert it to a figure or other DB entity using 
  473. GEOTOENT.  Finally you must reference your newly-created figure file 
  474. by adding a record naming it to the currently-active scan table (see 
  475. below) and make that record active.  Subsequent redisplays will display 
  476. your new data.
  477. If you're adding a limited amount of data from the keyboard and this is 
  478. the first time you're entering data, you must create a point entity 
  479. database.  Use FILES/New DBF/Figure and enter a name such as 
  480. "C:REDPINS" followed by a return.  The General DBF Editor will 
  481. display the first record which is preloaded with a square located lat = 0, 
  482. lon = 0 near the coast of Africa!  Escape out of this record and ignore it 
  483. or move it later.  Add your entities with the EDIT/DBF Entites/Insert 
  484. menu.  At the prompt for a DB point entity file, enter the name of the 
  485. file you just created: C:REDPINS.  You'll be given a choice of figure 
  486. names (which you can augment with FIGEDIT).  Choosing one (such as 
  487. circle) brings up the plus positioning cursor which you can exactly 
  488. position by entering a return or with the mouse. Locating your figure 
  489. leads you to our old friend the General DBF Editor.  Here you can enter 
  490. Label_Text (always end text with an Esc) and Hidden_Text.  If you have 
  491. more than 40 characters of hidden text, use the Memo field.  You can 
  492. change many other options here, but don't alter E_TYPE, LATITUDE, 
  493. LONGITUDE, or TILE.  Use the EDIT/DBF Entites/Move option to 
  494. change entity location.  Esc completes the entry.  The marker will 
  495. display on the screen but will not redisplay unless you reference its 
  496. DBF (C:REDPINS) from your scan table (see below).
  497. What is the scan table, and how do I use and modify it?
  498. If you are going to display your own dBASE entities, you must reference 
  499. the files in which they reside from another DBF called a scan table.  
  500. Because the CD-ROM is read-only, you must add your custom records 
  501. to a scan table residing on your hard drive which implies you will want 
  502. to use the mycopy/mymap technique for starting MAPIT from your 
  503. hard drive described on the first page of this section.
  504. From FILES/Edit DBF, enter C:SCANTABL (no final "E") followed by 
  505. Enter.  The first record of C:SCANTABL.DBF will display.  Use 
  506. <Ctrl>End to go to the last record.  If it is empty or unused, add the 
  507. name of your DBF (e.g. C:REDPINS), add the E_TYPE ("F" for Figures, 
  508. see list under Add Scan Table Records in the MAPIT section) Esc-ing to 
  509. terminate text, and mark ACTIVE "T"rue.  Exit the editor with Esc.  
  510. Use FILES/Add Scan Table Record to append a new record to the end of 
  511. the DBF if there is no spare.
  512. The scan table you have modified must be activated from within 
  513. MAPIT by selecting FILES/Open and entering C:SCANTABL.  Clicking 
  514. on FILES/Scan Table DBF tells you which scan table, if any, is 
  515. currently active.
  516. How do I use MAPIT to track hurricanes?
  517. Answer A:  Let's assume that you're using labeled circle figures which 
  518. you created in accordance with the instructions in question 1, "How do I 
  519. stick pins into a map."  As the hurricane proceeds along its track, you 
  520. either want to move the figure or duplicate it changing its location, size, 
  521. and possibly updating its label as it progresses.  Use EDIT/DBF 
  522. Entities/Move to move an existing figure.  Use Duplicate and Change to 
  523. make additional copies and edit them.  All pretty nifty.
  524. Answer B:  You want to see the dynamic of the interaction of several 
  525. tropical storms or you want to see how your hurricane moves in time.  
  526. Use SIMULATE to show all this in accelerated real time.  You'll have to 
  527. use MAPIT's moving markers with or without trails to show the 
  528. progress of your storms, not quite as sexy as the circle figures, but still 
  529. quite dramatic and revealing.  Perhaps you can combine both duplicated 
  530. figures and moving markers.  You'll have to lay out a .SIM script of the 
  531. hurricane's path as explained in SIMULATE.
  532. How do I GEOCODE data?
  533. Geocoding is the process of assigning latitude/longitude fields to dBASE 
  534. records.  MAPIT DB entity files are, by definition, geocoded, but not all 
  535. geocoded files are DB entity files.  DB entity files contain many 
  536. required fields which are not necessary for geocoding.  To geocode a file, 
  537. you must relate a field or fields in your database with corresponding 
  538. fields in a MAPIT database. Quite often you'll use a ZIP code or 
  539. city/state/country fields for key and matching fields in geocoding.   See 
  540. \MAPIT20\DBFS on the CD-ROM for MAPIT databases against which 
  541. to geocode.  Use the MAPIT GEOCODE utility to do the work.
  542. How do I create a MAPIT  DB entity file from my dBASE IV file?
  543. Geocoding is the first step in creating a DB entity file from your own 
  544. data.  Each record must have an associated latitude/longitude.  That's 
  545. the hard part.  Use the MAPIT utility GEOTOENT to add the fields 
  546. necessary to convert your geocoded file to a particular MAPIT entity 
  547. format.
  548. How do I visualize which colors go with which color numbers?
  549. For those of us who can't quite picture magenta, mauve, or color 
  550. number 11, use the EDIT/Layers/Change Color/Color (or Layer) to 
  551. display a new color or the color on another layer.  Since the Color option 
  552. actually changes the color on that layer, it's safest to change layers 
  553. remembering that layer 121 uses, by default, color 1, layer 122, color 2, 
  554. etc.
  555. How can my child make maps for school?
  556. MAPIT is the perfect source of real data for students to use in 
  557. producing maps for school or just for fun.  Probably the easiest method 
  558. is to create .PCX files from within MAPIT and to import them into 
  559. Paint of Paintbrush. If you need to produce more colorful output, use 
  560. the flood fill option of Paint to color oceans and lakes blue. If you don't 
  561. have a color printer, the lighter colors will give you more satisfactory 
  562. contrasting colors.  Light yellow, for instance, serves well as water 
  563. contrasting against land.  Choose the roller symbol for flood fill.  Non-
  564. solid colors are produced by dithering and won't unflood, so check your 
  565. flood areas first for leaks with a solid color.  (Leaks are caused by 
  566. breaks in borders or lines which allows the flood color to spread beyond 
  567. its intended boundary.  Use Zoom to find and patch leaks.)  Children 
  568. love this.  Turn off the MAPIT grid before screen capture to make fills 
  569. of large areas easier.
  570. What do all those files hold that seem to come along with MAPIT?  
  571. Which may I delete?
  572. .mp3
  573. -
  574. Main and private files holding line and 
  575. old style point entities.  WORLD.MP3 
  576. is the main data file.
  577. .fig
  578. -
  579. File containing the user's custom 
  580. figures.  Normally this file is user-
  581. created by FIGEDIT. Without it, 
  582. figures won't be displayed.  Defaults to 
  583. STD.FIG.
  584. .fnt
  585. -
  586. File defining stroked fonts. Without it, 
  587. stroked text doesn't work.  Defaults to 
  588. STD.FNT.
  589. .pen
  590. -
  591. File overriding MAPIT`s internal HP-
  592. GL/2 plotter settings.  See STD.PEN.
  593. .sav
  594. -
  595. File holding MAPIT's final state to 
  596. restart MAPIT where it left off.  
  597. Defaults to MAPIT.SA.  Recreated if 
  598. deleted.
  599. .shw
  600. -
  601. File holding a shadow image of 
  602. similarly-named large .mp3 file. 
  603. Recreated if deleted.
  604. What are the old versus the new style point entities.  Which should I use?
  605. MAPIT point entities come in two styles: old, which reside in .mp3 files 
  606. along with line data, and new, which are specialized dBASE IV files.  
  607. MP3TODBF and DBFTOMP3 convert entities from one format to the 
  608. other.  In general the new style point entities are more robust and 
  609. flexible than the old.  It is, however, easier to save data ad hoc to your 
  610. private .mp3 if you are running "map myfile" or "mymap myfile" and do 
  611. not have a DB entity file created and entered in your scan table.  On the 
  612. other hand, you should set up a DB entity file in the new style if you are 
  613. serious about manipulating your data.  See the first question, "How can 
  614. I stick pins into a map" for details.
  615. How do I export line data for use in another system?
  616. If the data to be exported is from MAPIT's main database 
  617. (D:\MAPIT20\WORLD.MP3) or from your own private .mp3 file, open 
  618. that file as the main database with a new extended database (e.g. map 
  619. new).  Use the EDIT/Copy command to copy all visible entities to your 
  620. extended database.  (To capture the fullest depth of MAPIT data, you 
  621. must be at zoom 24 or beyond.)  Outside of MAPIT, use MP3TOMP1 to 
  622. copy and convert the data in your extended database from .mp3 to .mp1 
  623. ASCII lat/lon format for import into another system.  Also see 
  624. MP3MOD for copying .mp3 data within well-defined extents from the 
  625. C:> prompt rather than from with MAPIT.
  626. In DOS, there's this confusing distinction between file names C:xxx and 
  627. C:\xxx.  What does that leading slash do?
  628. The leading slash says, "Go to the top of the drive."  If your current 
  629. directory on drive C: is \mydir (you changed directory there with the 
  630. command "cd \mydir") and you ask for a directory listing of c:xxx, DOS 
  631. will look for the file xxx on drive C: relative to C:'s current directory and 
  632. will return, if it exists, C:\mydir\xxx.  If you ask for c:\xxx, DOS will 
  633. try to return C:\xxx as found in the root directory.  The slash implies 
  634. an absolute path while no slash implies a path relative to that drives 
  635. current directory.  MAPIT quite often uses relative addressing so that 
  636. it doesn't have to know the details of the directory structure you choose 
  637. to implement on your hard drives.
  638. This leads to a pet peeve.  The DOS Prompt under Windows is often set 
  639. up to begin its life in C:\windows where enough garbage and general 
  640. confusion reside to confuse the most hearty soul.  In your W3.1 PIF 
  641. editor or by right clicking on your W95's MS-DOS Prompt's tool bar icon 
  642. and left clicking on Properties, change the Working Directory to a 
  643. simple "C:\" to take you to the root of your C: drive at program 
  644. invocation.  Of course if you have a DOS Prompt dedicated to a 
  645. particular task (such as MAPIT), you'll want your Working Directory to 
  646. reflect that choice (e.g. D:\ for MAPIT on your CD-ROM or C:\xxx for 
  647. MAPIT from your hard drive).
  648. I want to make a really large map for a display at school, and all we 
  649. have is a little 8 ½ by 11 printer.
  650. Get out the scissors and tape and set up MAPIT at the zoom level you 
  651. wish to print your map.  You're going to make a series of maps covering 
  652. the entire area in which you're interested and, with your scissors and 
  653. tape, cut and paste them together.  Because MAPIT is a Mercator 
  654. projection,  you can piece these separately printed maps together 
  655. indefinitely, at least in theory.
  656. The hard part is producing map sections which fill up a whole sheet of 
  657. paper out of your printer.  Its easiest if you have a printer which can 
  658. accept HP-GL/2 directly or a drawing program which accepts it as input 
  659. and supports your laser printer.  Working with Paint in Windows 95 is 
  660. a little more difficult but workable once you have it figured out.  You'll 
  661. have to export inverted .PCX files of the entire map area or, from 
  662. within MAPIT, use Print Screen to cut and a <Ctrl>v to paste directly 
  663. into Print.  You will have had to expand the background to 
  664. approximately twice the size and then stretched the picture 200% in 
  665. both the horizontal and vertical directions before printing in landscape 
  666. mode.  Perhaps you have an easier method or a better software package 
  667. for outputting a full-page image.
  668. The key and easiest part is producing the adjacent images from within 
  669. MAPIT.  After selecting your zoom and outputting the first image, hit 
  670. an arrow key twice to move either up, down, or sideways before 
  671. outputting your next image.  Keep doing this until you've covered your 
  672. area of interest while task switching with a <Ctrl>Tab between MAPIT 
  673. and your drawing program for each new image.  At a scale of 
  674. 1:1,000,000, a paper map of the equator would stretch some 125 feet.  
  675. How many sheets of paper in 125 feet?
  676. I heard about Baku, Azerbaijan on the radio but am a terrible speller.  
  677. How do I look it up?
  678. Normally you'd use the TOOLS/Database Lookup/City Gazetteer query 
  679. to look up a city whose name you could spell.  With so many cities 
  680. whose names begin "Ba", you'd be better off using the /Cities in.. query 
  681. and entering "Az" for the country and "Ba" for the city.  The seven 
  682. entries immediately appear.
  683. My granddad served on Los Negros in the Pacific during WWII.  It must 
  684. be pretty small.  I've never found it on a map.  How do I look it up?
  685. Use the TOOLS/Database Lookup/Placenames query.  You'll find when 
  686. you turn on DISPLAY/Boundaries/Political Text that Los Negros is a 
  687. little horse shoe-shaped island with a total length of about 15 miles, 
  688. part of Manus, Papua New Guinea in the Admiralty Islands, the 
  689. Bismarck Archipelago.
  690. How do I make scatter diagrams of cities over large continental areas?
  691. To accelerate display, MAPIT separates cities by size in a series of 
  692. dBASE files accessed via the scan table and ignores them until you 
  693. zoom in to some maximum scale.  Use FILES/Edit DBF to open your 
  694. hard disk version of SCANTABL.DBF, look for the files holding cities of 
  695. the sizes you're interested in, and change their MAX_SCALE fields 
  696. from the 4,000,000 or whatever to 0 or some other small number.  In 
  697. DISPLAY/Cities & Landmarks, toggle "Symbol & Name" to "Symbol 
  698. only".  The next time you redisplay the screen, MAPIT will display all 
  699. your cities as circles.  If you are zoomed out for a broad view, this 
  700. redisplay will take a long time.
  701. I'm plotting a map, and city names overlie each other.  What can I do?
  702. There is an obscure field in the city record named TXT_OFFSET which 
  703. defaults to "E".  Enter the first letter of Above, Even, or Below to 
  704. change the position of the name text to lie to the right of and above, 
  705. even, or below the level of the city's marker.  Edit individual cities 
  706. using EDIT/DBF Entities/Change and clicking in the middle of their 
  707. symbols.  Here again you cannot change data on the CD-ROM but must 
  708. make, change, and reference a copy on your hard drive.
  709. MAPIT Gotcha's: 
  710. Don't forget to TILEIZE, either from within MAPIT for small dBASE 
  711. files or from the utility for large files, after you've created or made 
  712. manual changes to the lat/lon fields.  Without the proper tile number 
  713. associated with a latitude/longitude pair, the entity simply will not 
  714. display.
  715. Don't forget to delete the scan table .MDX index file after you've made 
  716. changes to the sort PRIORITY field.  MAPIT will re-create a correct 
  717. index on startup.
  718. If MAPIT has problems opening a .DBF after you've created it and 
  719. MAPIT or a utility died in the process and you know that the file is 
  720. there and is of the correct format, rebooting may clear the problem. 
  721. Access problems can haunt a DBF like the ceaselessly roaming spirits 
  722. of the undead after the untimely demise of a dBASE program.
  723. Blow away the .SHW shadow file when you've made changes to 
  724. (lengthened or changed header zoom via MP3MOD) .MP3 files.  The old 
  725. shadow file will prevent the changes from becoming apparent. MAPIT  
  726. automatically creates a new shadow file when it doesn't find the old one 
  727. for large .MP3 files.
  728. DB entities can be inserted into inactive databases (or into databases 
  729. whose scan table is inactive).  The new entity will display upon 
  730. insertion but will not display on repaint.
  731. There is a subtle distinction between a null entry in the primary key 
  732. field of a database lookup and a blank.  A null in the City field of City 
  733. Gazetteer will find all cities starting with the first record.  A blank will 
  734. find none.  Both blank and null match all entries on secondary keys. 
  735. Problems and Solutions:
  736. The following are problems you may encounter while using MAPIT, 
  737. and their possible causes/solutions:
  738. 1.    No stroked text appears. The latitude/longitude numbers are 
  739. missing.
  740. A.    The font file std.fnt which holds stroked text character 
  741. definitions is not in the user's directory.
  742. B.    Stroked text which is too small to read at a given zoom is not 
  743. displayed.
  744. C.    The current zoom factor does not fall within the text's min/max 
  745. zoom values.
  746. 2.    The city markers display, but no city names.
  747. A.    Under the menu DISPLAY/Cities & Landmarks, the Symbol & 
  748. Name option must be selected.
  749. B.    The absence of a font file will also cause the names to be 
  750. absent.
  751. 3.    Figures I have previously entered are not visible.
  752. A.    The figures file std.fig, which holds figures' definitions, is not 
  753. in the user's directory.
  754. B.    The current zoom factor does not fall within the figure's 
  755. min/max zoom values.
  756. 4.    Graphic elements I have added in a previous session have dis-
  757. appeared.
  758.     The graphic elements you entered are written to the private 
  759. database EXTENDED.MP3. That same file must be in your current 
  760. directory. Use the DIR command to check EXTENDED.MP3's 
  761. length and date for reasonableness.
  762. 5.    Error - Lost sync in mid file: "file_name"
  763.     The .MP3 data file file_name has become corrupted. Nothing 
  764. beyond the point of corruption can be read. Replace it with a 
  765. backup file or try to EDIT/Copy as much data from it as possible. 
  766. (See Private Database Management.)
  767. 6.    Data I try to highlight for copy, modification, or deletion won't 
  768. highlight although it displays.  This is so frustrating!
  769.     Data you are going to change must be in the extended database.  
  770. Although you can view data in MAPIT's main database, it is read 
  771. only and cannot be changed.  (See MAPIT's /delete switch for the 
  772. one exception.)
  773. 7.    Line data I entered while running MAPIT from the CD with "map", 
  774. not specifying any extended file, appears to be entered but 
  775. disappears upon redisplay.
  776.     You have discovered the beauty of the /noextended option, the nul 
  777. file, the bit bucket, write only media, if you will.  MAPIT 
  778. constructs temporary graphics displaying your lines or old-style 
  779. point entities as you enter them and as it write the permanent data 
  780. to the nul file.  Upon repaint, the nul file, which always returns an 
  781. immediate End-of-File condition, a nul length, tells the redisplay 
  782. code there is nothing there to display.  Beautiful, isn't it?
  783. MAPIT Tips:
  784. MAPIT is busy scanning the databases when the cursor disappears 
  785. between repaints. When it becomes visible again, the redisplay is 
  786. finished and MAPIT is ready to accept command input. Remember, you 
  787. can cut short each database scan by pressing the Esc key - once for the 
  788. main database and again, if necessary, for your private database. 
  789. (Usually the main database scan is much longer.) 
  790. Use the cross hairs displayed by POSITION/Center for more accurate 
  791. lat/long display in the status line while measuring positions of objects. 
  792. Cancel when finished with the right mouse button.
  793. Use DOS's NUL file name if you need an empty file to read from or a bit 
  794. bucket to write to.  For example, if you wish to view or operate on the 
  795. private database file EXTENDED.MP3 file by itself without possible 
  796. interference from the data in the main database WORLD.MP3, open 
  797. MAPIT using the NUL file as the main database name:
  798.     C:>  mapit  nul
  799.  
  800. MAPIT
  801. The MAPIT Command Line:
  802. In general, start MAPIT from the command line by entering
  803. MAPIT  [main_data_file]  [/options] 
  804. where
  805. main_data_file
  806. -
  807. The primary .mp3 format data file 
  808. opened read-only. Defaults to 
  809. WORLD.MP3 if not specified.
  810. options
  811. /extended=
  812. private_data_file
  813. -
  814. A private .mp3 format data file opened 
  815. for update with user data or changes. If 
  816. none exists, a zero length file is 
  817. created.  Defaults to EXTENDED.MP3 
  818. if not specified.
  819. /noextended
  820. -
  821. No extended file looked for or created.
  822. /figure=
  823. figure_file
  824. -
  825. File containing the user's custom 
  826. figures.. Normally this file is user-
  827. created by FIGEDIT. Without it, 
  828. figures won't be displayed.  Defaults to 
  829. STD.FIG if not specified.
  830. /font=font_file
  831. -
  832. File defining stroked fonts. Without it, 
  833. stroked text doesn't work.  Defaults to 
  834. STD.FNT if not specified.
  835. /save=save_file
  836. -
  837. The file holding MAPIT's final state to 
  838. restart MAPIT where it left off.  
  839. Defaults to MAPIT.SAV if not 
  840. specified.  Recreated if deleted.
  841. /nosavefile
  842. -
  843. No .SAV file produced (read only 
  844. environment).
  845. /pendefinition=fil
  846. e_name
  847. -
  848. Override MAPIT`s internal HP-GL/2 
  849. plotter settings.  Defaults to a file 
  850. ending in .PEN.
  851. /delete
  852. -
  853. Allows the MAPIT menu selection 
  854. EDIT/Copy & Delete to work by 
  855. opening main_mp3_data for update.
  856. MAPIT also creates and maintains a .SHW shadow file for each large 
  857. .MP3 database it opens.  MAPIT will create a new one if you delete it.  
  858. If you alter a large .MP3 file by concatenating another to it, delete the 
  859. corresponding shadow file to make all of the data in the new .MP3 file 
  860. visible.  (See Working with MAPIT Files.)
  861. See MAP.BAT and MYMAP.BAT for descriptions of sample batch 
  862. startup files for MAPIT.
  863. Screen Layout:
  864. MAPIT uses a mouse-actuated pull-down menu structure in which 
  865. commands are grouped by similar function along the top of the display. 
  866. The bottom of the screen holds MAPIT's status line, which displays the 
  867. zoom factor, the approximate scale and distance across the center of the 
  868. screen, and the latitude/longitude of the mouse pointer. Sometimes 
  869. instructions, prompts, or information are written to the status line.  
  870. The Header Status Field, top and center, is described above.
  871.  
  872. FILES
  873. Controls ScanTable access and Exit
  874. ZOOM
  875. Redisplays the screen and controls zooming.
  876. POSITION
  877. Controls the viewer's location.
  878. TOOLS
  879. Controls great circle calculation, database lookup, GPS 
  880. markers, and plotting functions.
  881. EDIT
  882. Controls layer color assignments and DBF and.MP3 
  883. entity modification and duplication.
  884. DISPLAY
  885. Controls mapping features visibility and format.
  886. Menu Commands:
  887. FILES
  888. Exiting MAPIT and advanced operations controlling the selection of 
  889. databases for display.
  890. Scan Table DBF
  891. dBASE IV databases (DBF's) have been added to supplement the main 
  892. (WORLD.MP3) and extended (/extended=) .MP3 databases and are 
  893. designed to hold point type data (figures, stroked text, hidden text, and 
  894. cities).  While .MP3 files still support point data, their primary function 
  895. is now limited to line data. The scan table is a dBASE file holding a 
  896. collection of entity file names which, in turn, hold MAPIT point entity 
  897. data for display.  Think of a scan table as a directory of entity tables. 
  898. Only one scan table can be active at a time, but you may have many 
  899. unopened and therefore unused scan tables existing in your computer's 
  900. file system.  On the other hand, you need not have any scan table 
  901. defined.  By default, MAPIT looks for the scan table scantabl.dbf (no 
  902. "e" in scantabl).  If not found, MAPIT ignores its absence.  Scan tables 
  903. must have one or more entries.  The entries refer to MAPIT entity 
  904. tables which describe entities for display on your screen.  This 
  905. directory/file type hierarchy makes for a very open-ended, flexible, and 
  906. powerful entity display system.
  907. Scan table entries can be either active or inactive.  They must be active 
  908. to be searched and displayed.  If active, the named entity table must 
  909. exist.  Its availability can also be limited by display scale, a technique 
  910. designed to improve redisplay efficiency.
  911. Scan Table DBF displays the name of the current scan table.  Click or 
  912. hit any key to go on.
  913. Open
  914. Open requests the name of a scan table to open as the current scan 
  915. table.  Use the complete path name if it is not in the current directory.  
  916. The old scan table is automatically closed.
  917. Close
  918. Close closes the current scan table but does not open a replacement.  All 
  919. MAPIT redisplay now takes place from the main and extended .mp3 
  920. files.
  921. New DBF
  922. New DBF is a special command used to create a new MAPIT dBASE 
  923. file containing a single record.  You choose the type of database to 
  924. create:  a scan table or one of several entity table databases.  MAPIT 
  925. creates databases of minimal field count and with required field names.  
  926. Its possible for you to use more complex databases with your own extra 
  927. fields added.  Currently only entity tables containing point entities are 
  928. supported.  Lines must still reside in .mp3 files.
  929. Add Scan Table Record
  930. Use this command to add additional scan table records beyond the first 
  931. one.  You can control the order in which entity tables are searched and 
  932. displayed by adjusting the value of the PRIORITY field, a numeric two-
  933. digit field sorted in ascending order.  The default priority is 20.
  934. You must set ACTIVE True if you want the referenced entity database 
  935. to be scanned.  E_TYPE, the entity type of the referenced entity tables 
  936. must be set according to the table below.  E_TYPE is case insensitive.
  937. E_TYPE
  938. MAPIT Entity
  939. 'C'
  940. city
  941. 'F'
  942. figure
  943. 'H'
  944. hidden text
  945. 'M'
  946. pcx map
  947. 'S'
  948. stroked text
  949. CATEGORY defines an ad hoc entity type which, in the future, will 
  950. allow dynamic inclusion/exclusion of entire entity files just as Political 
  951. Boundaries are a predefined category of .mp3 files.  Not yet 
  952. implemented.  F_COLOR refers to the a forced color for all entities in 
  953. this entity file.  A value of -1 signifies no forced color.  DESCRIPT is 
  954. descriptive comment for documentation purposes only.  FILE_NAME is, 
  955. of course, the path name of the entity file to be scanned and displayed.  
  956. FILE_TYPE must be 'E' for MAPIT entity files.  MAX_SCALE refers to 
  957. the maximum scale above which this entity file is not scanned.  
  958. MIN_SCALE refers to the minimum scale below which this entity file is 
  959. not scanned.  Both these values are compared with the current display 
  960. scale.  For instance, the Standard Display centered on the prime 
  961. meridian at the equator and showing the entire world gives a scale of 
  962. approximately 1:157,000,000 on a 10 inch wide monitor.  Zooming in 
  963. reduces that scale shown near the lower left corner of your display.  You 
  964. can specify that entity tables will not be used until the current scale is 
  965. less than or equal to a MAX_SCALE value and won't be available 
  966. beyond (less than) the value of MIN_SCALE.  You can turn this feature 
  967. off  by not changing the default values from 0, a flag to ignore these 
  968. values.
  969. Edit DBF
  970. Edit DBF is a generalized dBASE editor which should work on just 
  971. about any reasonable database.  It is designed, however, to facilitate 
  972. changing fields in MAPIT scan table and entity records.  The fields 
  973. listed, their order, and data types are dependent on the definition of the 
  974. database being edited.  The example show here is from a scan table 
  975. database.  One should realize, however, that because this is a 
  976. generalized editor and because no tag (key) files are opened, changes 
  977. made to a key field will have no immediate effect upon record ordering.  
  978. Changing the PRIORITY field in scan table records or the TILE field in 
  979. entity files will have no immediate ordering effect.  You can, however, 
  980. force a reordering by deleting the corresponding .MDX (index) file and 
  981. running MAPIT again.  (scantabl.mdx is the index for scantabl.dbf.)  
  982. Finding the index file missing, MAPIT will recreate it on the fly, and 
  983. everything, including the newly changed record, will be ordered 
  984. properly.
  985. You can change a field by clicking it with you left mouse button.  The 
  986. type and length of field appear on the bottom left of the display.  Text 
  987. fields are a little tricky in that they are not terminated with the Enter 
  988. key but by Esc.  Returning inserts an implicit <CR><LF> sequence into 
  989. the string.  Entering a city name, for instance, with an Enter in it will 
  990. force all following text to the next line.  You can enter multi-line 
  991. character fields in this manner.  Although the text may disappear as 
  992. you enter more, re-editing it brings up the whole field formatted to the 
  993. proper width and depth.
  994. You can skip to the next record  with the down arrow key.  Up arrow 
  995. takes you back one.  <CTRL>Home takes you to the first physical 
  996. record and <CTRL>End, to the last.  While Ins doesn't insert a record 
  997. (to avoid ordering problems), <CTRL>Del marks a record for delete.  
  998. Footer information displays in red to indicate this.  The record can be 
  999. undeleted by keying Del by itself.  You must compact the database to 
  1000. physically purge deleted record, an operation not supported within 
  1001. MAPIT.  Records marked for deletion will not display but are 
  1002. changeable in order to get them back in case you change your mind. All 
  1003. changes you make to fields take effect immediately!
  1004. Another instance of this editor is tied to the EDIT/DBF Entities/Change 
  1005. and is designed specifically for editing DBF entity records.
  1006. Reset DBF Tiles
  1007. MAPIT tiles are numbered 5 x 5 degree geographic areas designed to 
  1008. limit data search and speed repaint.  This option assigns the tile field 
  1009. the correct tile number for a location.  Externally created DBF's must 
  1010. make the tile field the key.  You should manually delete the associated 
  1011. .MDX index file to force the creation of a new index.  Mismatched 
  1012. tile/loc combinations or misordered tiles will prevent the display of the 
  1013. related entities.  If you are working with large DBF's (several 
  1014. megabytes or larger), use the external program TILEIZE to assign the 
  1015. tile numbers and complete the job much more quickly.  
  1016. Multi-Record Change
  1017. A general DBF editor to change a field in all records to a particular 
  1018. value.  Let's you preview the first n records you will change.
  1019. Exit MAPIT
  1020. Terminates MAPIT.  Alternately you can key <CTRL>Q to quit or exit 
  1021. from the system (if, for instance, you don't have a mouse).
  1022. Upon exit, MAPIT creates the save file mapit.sav reflecting changes in 
  1023. the system, most notably your last location and zoom factor. When 
  1024. MAPIT starts up again, the systems resumes where you left off. If a 
  1025. save file is damaged or deleted, a new one is created the next time you 
  1026. exit.  Of course your old locations and settings stored in the original 
  1027. save file are lost.
  1028. Another file MAPIT may create is the shadow file, data_file.shw.  A 
  1029. shadow file holds an image of the region data for a particular .mp3 
  1030. database file.  Loading the shadow file is much faster than scanning the 
  1031. regions of a large database at startup.  Shadow files aren't created for 
  1032. small databases. If a shadow file is damaged or deleted, a new one is 
  1033. created the next time you exit.  Your first startup may be delayed while 
  1034. the databases' regions are scanned.
  1035. ZOOM
  1036. Zooming is a method of drawing closer to or farther away from the 
  1037. detail of the portion of the display you are viewing. The initial zoom 
  1038. factor of 1 displays what is herein called the Standard World: the 
  1039. display centered on 0 latitude, 0 longitude with visibility from 180 
  1040. degrees west to 180 degrees east. You can use one of a number of 
  1041. different methods to zoom in to see more detail, or once you are in, to 
  1042. zoom out for a broader, less detailed view.
  1043. Zooming in is necessary not only to see the additional undulations of a 
  1044. rugged coast, for instance, but to view new objects revealed only at the 
  1045. greater detail. To prevent screen clutter, many objects - major and 
  1046. minor rivers, national borders, state and provincial borders, and 
  1047. cities- are intentionally not visible except at higher zoom factors. 
  1048. When you zoom in too far, instead of seeing the smooth, natural-looking 
  1049. curves of coastlines, you see the underlying vectors making up the 
  1050. database. The maximum zoom factor supported by the data is 
  1051. dependent on the size and detail of the MAPIT database you 
  1052. purchased. Higher zoom factors demand much larger data files.
  1053. Redisplay
  1054. This command clears the screen before repainting it with the current 
  1055. data. Use this function if you want to clear off old or temporary data.
  1056. Overwrite
  1057. This command does not clear the screen, but paints over it with current 
  1058. data. You can use this function in conjunction with changing the 
  1059. visibility of certain objects to accentuate certain mapping features. For 
  1060. instance, if you are examining an area in which a border follow a small 
  1061. river and the border in question has been overdrawn by the river, you 
  1062. can accentuate the border without losing all small rivers by turning off 
  1063. small river visibility (DISPLAY/ Rivers) and then choosing 
  1064. ZOOM/Overwrite. Because the Rivers display is toggled off, the rivers 
  1065. will not be redrawn after the overwrite and the border will be visible. 
  1066. Because you did not clear the screen first, other Rivers will remain 
  1067. displayed from the prior redisplay.
  1068. (Kill PCX Map)
  1069. Turn off the currently-turned on PCX Map.  Redisplaying or overwriting 
  1070. after selecting this item kills a PCX Map.  Needed only after displaying 
  1071. a PCX Map.
  1072. In by Corners
  1073. This is the most common means of zooming in. First choose one corner 
  1074. of a proposed new window by pressing the left mouse button and, with 
  1075. it still depressed, drag the mouse to the diagonally opposite corner of 
  1076. the proposed viewing window. MAPIT adjusts either the width or 
  1077. height of the proposed window to maintain your screen's aspect ratio 
  1078. while guaranteeing that the area you asked to view (at a minimum) will 
  1079. be visible. Zooming In by Corners also changes the center of the display.
  1080. In by X Factor
  1081. This command prompts you to enter a factor by which to zoom into the 
  1082. display while maintaining the current center. If your current zoom 
  1083. factor is 3, zooming in by a factor of 2 will result in a new zoom factor of 
  1084. 6.
  1085. Out by X Factor
  1086. Here you can enter a factor by which to zoom out from the display while 
  1087. maintaining the current center. If your current zoom factor is 9, 
  1088. zooming out by a factor of 2 will result in a new factor of 4.5 (although 
  1089. the status line will display 4).
  1090. To Factor X
  1091. If you know the exact factor to which you want to zoom, you can enter it 
  1092. with this command.
  1093. To Scale X
  1094. scale
  1095. latitude
  1096. display 
  1097. width
  1098. zoom
  1099. 9,000,000
  1100. 0
  1101. 1421 mi.
  1102. 17
  1103. 9,000,000
  1104. 83 N
  1105. 1421 mi.
  1106. 2
  1107. Scale refers to the mapping scale, the ratio of the width of the display to 
  1108. the width of the scene displayed.  One inch on a ten inch display equals 
  1109. 2,485.7 miles at the equator for a scale of 1:157,492,884.
  1110. While zoom factors are easy to work in and think about, professional 
  1111. cartographers think in terms of scale.  Scale is latitude independent.  
  1112. Whether you're working at the equator or at 83 degrees north in 
  1113. Greenland, equal scales give, by definition, equal fields of view.
  1114. To Std World
  1115. Standard World is the whole the world's entire width across the screen 
  1116. centered on latitude 0, longitude 0 and displayed at zoom factor 1 - the 
  1117. view MAPIT shows when it first started up. If you are ever lost, you 
  1118. can come back to this point.
  1119. POSITION
  1120. MAPIT allows you to navigate over the face of the globe by ZOOM and 
  1121. POSITION. ZOOM controls the zoom factor (the width of the displayed 
  1122. area), and POSITION controls the center of the displayed area.
  1123. You can change the center of the display by several means. One means 
  1124. is ZOOM/In by Corners; with this technique, however, your choice of a 
  1125. new center is limited to the current viewing area. The POSITION 
  1126. commands offer explicit alternative methods. 
  1127. MAPIT tries to maintain a constant zoom factor while changing 
  1128. location.  This means that as one moves north or south, the scale will 
  1129. change.
  1130. Center
  1131. Clicking the left mouse button after choosing Center repositions the 
  1132. screen's center to the location just clicked. The scope of the display 
  1133. (zoom factor) remains the same, but you can move up to a half-screen's 
  1134. distance from the old center. Use this technique to center the display on 
  1135. some point of interest before zooming in for a close-up look. (By-X-
  1136. Factor zooms are accomplished on the current center.)
  1137. Begrudgingly politically correct, MAPIT supports displays centered just 
  1138. about anywhere.  You can, for instance, center the display at 180 
  1139. degrees (still at zoom 1) to measure the shortest distance between 
  1140. Boston and Australia.
  1141. Drag
  1142. You can drag any point on the screen to be re-displayed at any other 
  1143. point. If, for instance, a feature near the bottom of the display is the 
  1144. topmost object you wish to see (that is, your interest is in features 
  1145. below it), press the left mouse button while over that near-the-bottom 
  1146. feature, drag to a point near the top of the screen, and release the left 
  1147. mouse button. Use this technique to move as much as a screen's dis-
  1148. tance from the old center.
  1149. Last (TAB)
  1150. Selecting the Last menu option (or pressing the tab key from the main 
  1151. menu) repositions the display to the last location/zoom combination.  
  1152. Selecting Last again toggles the display back to what originally had 
  1153. been the current location/zoom.  Using the TAB key is a fast way of 
  1154. toggling between these two views. The only exception to this method is 
  1155. that the Standard World location is not included in this Last scheme 
  1156. because you can easily get to them by re-invoking Zoom/To Std World.
  1157. Save as
  1158. Save as is a method of permanently storing a location/zoom combination 
  1159. as a single letter or digit for later access.  For instance, if you save the 
  1160. location of Bermuda as "H" (for Hamilton, its capital city), you'll be able 
  1161. to get back to that view of Bermuda from any location by Restoring H or 
  1162. entering H at the main menu.  You can save up to 36 of these single 
  1163. character locations.
  1164. Restore
  1165. Restore is the formal menu-selected method of returning to any 
  1166. previously Save as location/zoom factor.  The fast method is, of course, 
  1167. just entering the single letter or digit in which the target view is saved.  
  1168. Restoring to an unsaved letter results in no action.
  1169. TOOLS
  1170. Temp. Distance
  1171. Measure great circle distances between multiple points.  (Position Menu 
  1172. entry not available.)  Curves produced are in temporary graphics only 
  1173. and will disappear after a redisplay.  See Great Circles below in this 
  1174. menu for creating permanent distance curves.
  1175. Temp. Distance computes the great-circle distance from one point to 
  1176. another while dynamically displaying both great-circle and constant-
  1177. compass-bearing (rhumb) lines. For short distances, great-circle 
  1178. distances approximate rhumb lines which you would draw on a 
  1179. Mercator map with a ruler. Great-circle distances, however, are the 
  1180. physically shortest distances on a globe (as measured by standard 
  1181. crows). Great circles appear as curved lines on a Mercator projection, 
  1182. with the notable exceptions of the equator and all north-south running 
  1183. (meridian) lines. Radio waves follow great circles as did Charles 
  1184. Lindbergh.
  1185. To measure distance, position the cursor over the location from which 
  1186. you want to start measuring, press the left mouse button, and drag 
  1187. (with the button still depressed) to the place at which you want to end 
  1188. the measurement. Double-clicking halts measurement. MAPIT displays 
  1189. the result on the footer status line in statute miles, nautical miles, or 
  1190. kilometers depending on your current system of measurement. (See the 
  1191. DISPLAY menu.)  
  1192. If you need to measure multi-leg distances, measure the first leg as 
  1193. noted above; at the end of that leg release the left mouse button. Then 
  1194. press it again before moving on to the next leg. You can back up (delete 
  1195. legs) with the right mouse button.
  1196. The To: and From: angles displayed right after the distance on the 
  1197. footer status line are the bearings from the starting point to the 
  1198. destination and from the destination back to the starting point.  You 
  1199. might expect these bearings to have a simple reciprocal relationship: 
  1200. one's being equal to the other plus or minus 180 degrees. They do only 
  1201. for short distances. If you were going to fly your airplane or point your 
  1202. antenna, these angles would indicate the initial course for you to fly
  1203. The excess length of the rhumb over the great circle distance is 
  1204. dynamically displayed in top center status field along with the To 
  1205. bearing of the rhumb course.  The From bearing is the To's reciprocal in 
  1206. this case.
  1207. You can measure great circle distances more than half way around the 
  1208. world.  When your great circle flips over both poles, your track is more 
  1209. half way around the world and you are measuring the longer part of the 
  1210. great circle. The letter L will appear in the footer following the From 
  1211. angle, and the distance will be greater than 12,000 miles, the 
  1212. approximate half circumference of the earth.
  1213. Temp. Circle
  1214. Dynamically enter a temporary circle of a given radius about a point.  
  1215. (Position Menu entry not available.) Curves produced are in temporary 
  1216. graphics only and will disappear after a redisplay.  See Great Circles 
  1217. below in this menu for creating permanent circle curves.
  1218. Temp. Circle draws a circle around a geographic point of your choosing. 
  1219. As you draw it, its radius and the enclosed area are displayed on the 
  1220. lower left corner of the footer status line. 
  1221. While actually a simple circle on a sphere, the range curve can be 
  1222. complex when projected onto a flat map. As the curve passes over one of 
  1223. the poles in the Mercator projection, it transforms into a sinusoidal 
  1224. open curve, which then, as it passes over the second pole, reforms back 
  1225. into a closed curve only to disappear as small circle on the opposite side 
  1226. of the world from its starting point.  This strange behavior is really the 
  1227. path a ring would take as it grows from a single point on a sphere 
  1228. encompassing half the world before converging to a point on the other 
  1229. side of the earth. 
  1230. To prove to yourself that all points on a given circle are equidistant 
  1231. from the center, use the Temp. Distance function to connect the center 
  1232. to a number of randomly chosen points on the range curve noting their 
  1233. measured distances.
  1234. You can cancel a Temp. Circle function in mid-command by depressing 
  1235. the mouse's right button.
  1236. Great Circles
  1237. Permanent: 
  1238. Permanent/temporary toggle for all items in this menu.  Permanent 
  1239. objects are stored in the extended file.
  1240. Distance:
  1241. Dynamic (Multi-point)  -  Position Menu entry not available.
  1242. Point to Point -   
  1243. Line of Sight:
  1244. at Angle, From Location  -  What you see along a heading from a known 
  1245. point.
  1246. at Angle, To Location  -  Line on which you stand when looking at an 
  1247. angle toward a known point.  Typical of coastal piloting or RDF work.
  1248. Complete Great Circle
  1249. at Angle, Through Point  -  
  1250.  
  1251. Line of Sight
  1252. through Two Points  -
  1253. Range Circles:
  1254. Dynamic Circle  -  Position Menu entry not available.
  1255. Two Points -  
  1256. Center & Range - 
  1257. Line of Sight - Range from central elevated point to a far elevated object 
  1258. over the horizon or optionally limited to a dip angle or elevation.  Use 
  1259. for satellite receiver range, air reconnaissance, strong light navigation.
  1260.  
  1261. Database Lookup
  1262. MAPIT supports database lookup of  a number of different items 
  1263. related to cities, countries, states, US ZIP and telephone exchanges, 
  1264. geographic placenames, airports, and US towers.  Once an item is 
  1265. located, you can go to its geographical position.  
  1266. All queries share the following in common:
  1267. One or more fields in which to enter information.  If you enter partial 
  1268. data, MAPIT will match the characters you have entered as well as any 
  1269. following as though requested with an implicit trailing `*'.  Entering 
  1270. "Oak" matches Oak, Oakdale, and Oakmont.  In cases with multiple 
  1271. fields, the first field is a direct index into the related database and is 
  1272. fast.  Following fields eliminate entries from the primary search which 
  1273. don't match these secondary fields by scanning through all matching 
  1274. primary keys, a potentially inefficient and time-consuming process for 
  1275. broad primary-key searches.  For this reason, there are a number of 
  1276. different related queries using different primary keys.  Some are faster 
  1277. for one thing, others for another.  For example, you could look up all the 
  1278. cities beginning with the letter "S" in a particular country by using the 
  1279. "City Gazetteer" whose first field (primary key) is City and whose 
  1280. second field is Country.  That process would be inefficient in that the 
  1281. query would scan through all cities in the world beginning with the 
  1282. letter "S" in order to find those in the country of your interest.  A more 
  1283. efficient approach would be to use the "Cities in.." query whose 
  1284. primary key is Country and last key is City.  Temper this warning, 
  1285. however, with the knowledge that the US accounts for some 75% of all 
  1286. cities in the database.  If you're working with US cities, the difference 
  1287. between queries might not be as great in this case.
  1288.  
  1289. Please note.  Country names may not be as you think.  England is listed 
  1290. as a "state" in the country of United Kingdom!
  1291. As you enter the query menu, the mode you are in appears in the left 
  1292. footer: "Select modifiers and lookup".  Click with the left mouse button 
  1293. over one of the top query fields to select that field for data entry.  
  1294. (Clicking with the right mouse at this point escapes you out of the 
  1295. query menu.)  The query is case-independent.  Enter a return or a tab 
  1296. to complete the field.  You may also click either mouse key to end the 
  1297. entry.  Click with the left to select the next field.  When you are 
  1298. finished entering all query fields, click the "Lookup/More" field near the 
  1299. lower right section of your screen.  (If you didn't end your last entry 
  1300. with a return, you'll have to click twice.)  MAPIT performs the search 
  1301. displaying the results in the middle of the screen.  As it finds matches, 
  1302. it updates the counter in the right footer.  When the query is completely 
  1303. satisfied, the message "Finished" appears in the left footer.  If there is 
  1304. more data to be displayed, the message is "More" and you must 
  1305. continue to click on "Lookup/More" to display the next page of data.  At 
  1306. any time you can re-enter new data in the query fields, but for the 
  1307. lookup to act on a fresh primary key, you must click on the "Restart" 
  1308. field to return to the "Select modifiers and lookup" mode.  After that 
  1309. you can select the "Lookup/More" field.  Results from new queries are 
  1310. appended to old results.  If you highlight any displayed result and select 
  1311. the "Return & Display" field near the bottom left of your screen, the 
  1312. query will end and your screen will be centered on the location 
  1313. associated with that entry using the current zoom factor.  You can abort 
  1314. a query by selecting the "Cancel" field or by clicking the right mouse 
  1315. button.  Please note that if you try to highlight an area of the results 
  1316. screen where there are no results, MAPIT will display the error 
  1317. message "DB read failure on record 0."  Click or return to clear.  You've 
  1318. done no harm.
  1319. Available Database Searches
  1320.  
  1321. Title
  1322. Description
  1323. City Gazetteer
  1324. Alphabetical list of all cities.
  1325. Cities in..
  1326. List cities by country/state/county
  1327. Cities by State
  1328. List cities by state/county/country
  1329. Phone/ZIP's by City
  1330. List US phones/ZIP's by city and state.  Phone 
  1331. numbers are area codes plus exchanges (up to 6 
  1332. digits) with no blanks, dashes, or parentheses.
  1333. US Cities by ZIP
  1334. List phones/cities by ZIP and county.
  1335. US Cities by Phone
  1336. List ZIP's/cities by phone.
  1337. Country Gazetteer
  1338. List countries of the world with International 
  1339. Dialing Codes.
  1340. State (Abbr.) in..
  1341. List states/(US abbreviations) by country.
  1342. Counties in..
  1343. List counties by country/state.
  1344. Placenames
  1345. List geographic placenames.
  1346. Airports
  1347. List many airports of the world.
  1348. Towers (US)
  1349. List US fire and radio/television towers.
  1350. File Maintenance
  1351. Each database query has its own maintenance screen controlling 
  1352. database name, index, and query program. Note that the paths are 
  1353. relative (do not reference an absolute path beginning with the drive's 
  1354. root) to the subdirectory "dbqs" where all query data is stored.  There 
  1355. should be no need to make changes.
  1356. Plot HP-GL/2
  1357. Output high-quality graphics to an HP LaserJet III (or better) laser 
  1358. printer, a plotter, or to an HP-GL/2 [or HP-GL] graphics file for import 
  1359. into an external graphics program or word processor.  To change the 
  1360. default pen assignments, line type or width assignments, or plot 
  1361. borders or lat/long grids assignments, see the example pen definition 
  1362. file std.pen.  Change a copy and invoke MAPIT with the command line 
  1363. calling parameter /pendefinition=my_file.  See Appendix C: Pen 
  1364. Definitions for a table of colors and a listing of std.pen.
  1365. The Landscape/Portrait choice refer, of course, to the plots orientation: 
  1366. horizontal or vertical and the Page Width and Height to the plot's 
  1367. dimensions in inches.
  1368. Text Scale refers to the relative size of plotted text versus other 
  1369. graphics objects and defaults to a value of 1.0X.   Changing the Text 
  1370. Scale to 2.0 doubles the size of the text.
  1371. Borders refers to the heaviness of the lines which default to the 0.35 
  1372. mm minimum on the LaserJet III.  If you specify a lesser value, the 
  1373. minimum is used.  Notice that Borders default to 0.5 mm being slightly 
  1374. heavier than default lines.  You can also toggle borders, which frame 
  1375. the plot, on and off.
  1376. Detail is a relative value (defaulting to 1.0X) indicating the detail of the 
  1377. data sent to your plotter. A detail of 1.0X will ship vector data in the 
  1378. detail normally displayed on your screen.  MAPIT invokes dynamic line 
  1379. segment pruning during display to speed graphics repaint and to 
  1380. minimize clutter caused by many small single-pixel entities.  While this 
  1381. works well for the relatively course environment of your display, 
  1382. plotting devices commonly support much finer resolution where the 
  1383. extra detail may be welcome.  Increasing the detail to 2.0X, 16X, or 
  1384. FULL causes MAPIT to pass more detailed information to your plotter. 
  1385. If you are experiencing memory overflows on rasterizing (laser printer) 
  1386. plotting devices, reducing the detail to 0.7 or 0.5 may drop the output 
  1387. vector count to the point where entire plot fits within the device's 
  1388. memory. (Not plotting cities and text also helps.)  Naturally the quality 
  1389. of the plot may suffer noticeably.
  1390. Deep Scan is a toggle indicating the depth of database scan to be used 
  1391. in retrieving plotting data.  Without it, a plot uses the same portion of 
  1392. the database used by the display.  Below zoom 24, several less-detailed 
  1393. versions of the data are accessed to expedite repaint. Selecting Deep 
  1394. Scan forces MAPIT to reach deeper into its database and retrieve the 
  1395. most detailed version for plotting. If you're already at or below zoom 24, 
  1396. Deep Scan will have no additional effect. .  
  1397. The Printer/Plotter versus File choice selects whether the output is sent 
  1398. to your system's PRN device or to a file.  If you select a file, MAPIT 
  1399. prompts you for a file name where the default file name extension is 
  1400. .hgl.  Three other choices indicate whether this must be a new file, may 
  1401. be an old file which will be overwritten with the new data, or may be an 
  1402. old file to which the new data is appended.  This final choice allows you 
  1403. to batch a number of plots into one file assuming your plotting device 
  1404. supports multiple plots.
  1405. PCL Header indicates whether you are plotting to a Hewlett Packard 
  1406. PCL 5 (Printer Control Language) supporting device such as an HP 
  1407. LaserJet laser printer.  If your output will eventually go to a word 
  1408. processing document or to a pen plotter, the PCL Header probably is 
  1409. not desirable.  Its purpose is to switch the printer from text to plotting 
  1410. mode.
  1411. The Plot Full Map/Plot Selected Area menu choices begin the plotting 
  1412. process.  In either case the selected area is guaranteed to be plotted 
  1413. with more added to the sides or to the top and bottom depending upon 
  1414. the selected aspect ratio (Landscape/Portrait and plot dimensions) 
  1415. versus the chosen area.  Plot Full Map, of course, selects your entire 
  1416. screen, a Landscape conformal area.  Plot Selected Area gives you the 
  1417. chance to select the corners of a rectangle defining your plotting area.  
  1418. Your original chosen area is outlined in red while the recalculated (to fit 
  1419. the aspect ratio) area is outlined in yellow.  You are given a final chance 
  1420. of aborting or continuing the plot after the actual plot area is outlined.
  1421. Abort is the most direct way of aborting the plotting process before you 
  1422. begin.
  1423. Plot PCX
  1424. With Plot PCX, you can output colorful .PCX screen shot files directly 
  1425. without the need for screen capture by an external program. 
  1426. Invert temporarily switches black and white map colors without 
  1427. changing other colors during creation of the output .PCX file to lighten 
  1428. the effect of the otherwise black background. 
  1429. You must choose a File name for output.  The default name extension is 
  1430. .PCX, a format read by many paint programs including Windows' 
  1431. Paintbrush.  The overwrite/new only choice indicates the action to be 
  1432. taken if the named file already exists.
  1433. You have the choice of plotting the Full Screen which includes the menu 
  1434. and status lines, the Full Map, or a Selected Area. With the latter 
  1435. choice you must select the corners of a rectangle defining the area to 
  1436. plot.  The fact that .PCX screen dumps are limited to the resolution of 
  1437. your screen, by selecting only a portion of your screen with this latter 
  1438. choice you may be substantially reducing the resolution of the captured 
  1439. area as well as reducing the size of the output file.  In other words, best 
  1440. results (and largest files) are obtained by selecting as large an area to 
  1441. plot as possible.
  1442. You may still need to use external screen capture such as Print Screen 
  1443. from within a Windows DOS box (see Making Maps/Screen Capture) if 
  1444. you need to show such MAPIT details as a pointing cursor or the menu 
  1445. system in use.
  1446. GPS/Markers
  1447. Display real-time moving markers communicating with MAPIT 
  1448. through a dBASE IV interface file.  MAPIT cooperates with GPS, an 
  1449. external 16 bit Windows program which updates file GPS.DBF with live 
  1450. data from the NMEA 0183 output cable of a GPS receiver.  
  1451. SIMULATE, a DOS-based simulation program included with MAPIT, 
  1452. also drives markers.  You can use your own external program to update 
  1453. one or more database records and monitor the positions by moving 
  1454. markers.  The square markers may be labeled showing a name, 
  1455. heading, speed, and time, as well as displaying an arrow indicating 
  1456. direction of motion.  The frequency of database polling to detect changes 
  1457. is variable with lower limits in the sub-second range.  The display can 
  1458. be tied to follow one marker if it moves out of view.
  1459. Unlike entities which are stored in the .MP3 database and are limited 
  1460. to a locational accuracy of approximately +/-100 feet, the placement 
  1461. accuracy of moving markers is limited only by the precision of the data 
  1462. passed through the interface database.
  1463. Active must be selected for MAPIT to read the database specified under 
  1464. Interface DBF.  If the user exits MAPIT with a database open, upon 
  1465. restarting, MAPIT tries to open the same database with the same 
  1466. display conditions. Note that while Active in the context of this menu 
  1467. refers to MAPIT's attempt to open and process an interface database. 
  1468. In order to be displayed, each record in said database must also have its 
  1469. "active" field set true by its controlling external program.
  1470. Min zoom is a threshold value indicating at what zoom level markers 
  1471. will become visible. The default value of 0 implies that markers will 
  1472. always be visible. (At the Standard World display, the zoom is 1.)
  1473. Color is the default color number for displaying markers when their 
  1474. corresponding database records don't specify a particular value (i.e. 
  1475. have a value of -1). The default default color number is 4 or red.
  1476. Scan delay provides a lower bound for the delay between subsequent 
  1477. reads of the database and the display of updated markers.  The default 
  1478. is once a second. When MAPIT is idle (you're not in a command or 
  1479. menu), MAPIT will read the database and update marker locations no 
  1480. more frequently than once a Scan delay. Database processing and 
  1481. marker display times are dependent upon the number of records read 
  1482. from the database and on the amount of information displayed with 
  1483. each marker and cannot be guaranteed.  If you specify a one second 
  1484. delay, that delay will be introduced between each redisplay of the 
  1485. markers.  Working in MAPIT will stop the redisplay until your activity 
  1486. is over.  You can set the delay down to 0.01 seconds, actually to one 
  1487. clock tick, or 1/18th of a second.  The flicker rate of the mouse icon may 
  1488. increase as you shorten the delay.
  1489. You can auto track or follow one marker icon.  If a marker moves off the 
  1490. screen, MAPIT will move the display window to follow it. Auto track is 
  1491. a dual-function menu item.  It toggles auto tracking on and off, and if 
  1492. you don't select the default entry with a simple return, accepts input of 
  1493. a new marker name. The default marker name is "GPS", but you can 
  1494. enter any marker name from the current database. Be careful. MAPIT 
  1495. doesn't allow you to select a name not in the current database and will 
  1496. revert to the old name.
  1497. Marker trails retains the temporary graphics of the square icons 
  1498. showing the position of past locations of markers. Because these trails 
  1499. are retained in temporary graphics only and are not saved as 
  1500. permanent entities, they disappear the next time the screen is redrawn. 
  1501. Display name toggles the name line of moving marker icons. A name 
  1502. may be up to 20 characters.
  1503. Display speed toggles the speed/heading line of moving marker icons.  
  1504. The units of speed are determined by the GPS program or other 
  1505. program which feeds the interface database. The value stored in the 
  1506. speed field is used directly.  MAPIT attempts no conversion to other 
  1507. units.
  1508. Display time toggles the time line of moving marker icons. This field 
  1509. indicates when the database-updating program last updated each 
  1510. record. In fact, MAPIT will update a marker only if its active field is 
  1511. true and if the time is different from the time the marker was last 
  1512. displayed. Note that the time displayed by GPS units may be Universal 
  1513. Time (GMT) and may not reflect your local time zone.
  1514. Register PCX
  1515. MAPIT supports the display of single-screen .PCX files overlaying 
  1516. regular MAPIT entities.  The purpose of this feature is to support using 
  1517. maps of very small areas as backgrounds for MAPIT operations.  If, for 
  1518. example, you wish to display the boundaries of a farm or a state park 
  1519. copied from another document, MAPIT must know where to place this 
  1520. detailed overlay and at what scale.  This process is called registering 
  1521. and involves matching two (distant) points on the .PCX overlay with 
  1522. two points or lat/lon locations in MAPIT.  This menu option supports 
  1523. that registration process. Once registered, a .DBF holding registration 
  1524. information can be called and displayed by a type `M' scan table record.  
  1525. The .PCX file must be a 16 color image, ideally the type created by the 
  1526. old Windows 3.1 PaintBrush program.  MAPIT displays .PCX files 
  1527. using its own color palate and may thus change the colors of the .PCX 
  1528. file. 256 color files don't map properly and are unusable.  Convert them 
  1529. first to 16 colors using programs such as Paint Shop Pro.
  1530. Work from top to bottom in the menu and pay attention to instructions 
  1531. in the footer.
  1532. Display PCX accepts the file name of the .PCX you are registering and 
  1533. displays it.
  1534. Align PCX is the critical command in this sequence.  It prompts first for 
  1535. a point on the PCX which you must pick with the mouse and then asks 
  1536. for the corresponding point on the map which you may enter with the 
  1537. mouse or by position menu. (A return.)  It does this for two points. 
  1538. MAPIT will display the registration you've just entered for you to 
  1539. check.  You can repeat this step any number of times.  Registration 
  1540. implicitly establishes a scale which MAPIT will return to every time 
  1541. you access this PCX overlay.
  1542. Name map is the text by which a registered PCX will be known by in 
  1543. MAPIT.  It will be displayed below the PCX map symbol (the letter "M" 
  1544. enclosed within a rectangle).
  1545. Register in queries you for the name of map entity DBF which will hold 
  1546. references to this and perhaps other PCX maps.  If no file exists, 
  1547. MAPIT asks if it should create it.  Give the name of a file on a 
  1548. writeable drive (e.g. C:pcxfiles) and not the readonly CD-ROM.
  1549. The file you created or added to in Register in must be referenced in 
  1550. your scan table for your PCX maps to display.  See FILES/Add Scan 
  1551. Table Record.  The entity type field E_TYPE must be set to "M".
  1552. EDIT
  1553. Move, duplicate, change, insert, and delete objects or entities in various 
  1554. MAPIT databases.
  1555. DBF Entities
  1556. Move, duplicate, change, insert, or delete .DBF point entities.
  1557. Move
  1558. This command uses a selection sequence common to many other 
  1559. commands in MAPIT.  Select an entity by positioning the cross hairs 
  1560. over the origin of the DBF entity you wish to move.  The origin of  DBF 
  1561. entities are commonly a point in the center, the user-defined origin 
  1562. point of figures, or a point at the lower left corner of the first character 
  1563. in text.  Click with the left mouse button to make the selection or with 
  1564. the right to abort.  If you miss with the left click and don't select any 
  1565. entity, you can click again immediately.  Your selected entity will 
  1566. become highlighted and a message in the footer will display the action 
  1567. and entity type.  (See the type table in Add Scan Table Record.)  A 
  1568. floating menu asks, "Correct entity?"  Answer "Y" or "N" to proceed or 
  1569. not.  An affirmative response returns control to the cross hairs.  Move 
  1570. and click with the left button to choose a new location, with the right to 
  1571. abort the process, or use the Enter key to bring up a keyboard-
  1572. controlled floating menu for exact positioning.  This sequence is typical 
  1573. of selecting DBF entities.
  1574. The move command changes the location of DBF entities.
  1575. Duplicate
  1576. Duplicate uses the common selection sequence to replicate the original 
  1577. entity in a new location.  The original entity can be duplicated any 
  1578. number of times and can be located by either left mouse-click 
  1579. positioning or by keyboard entry.  The new entities are stored at the 
  1580. end of the original entity's data file.
  1581. Change
  1582. Change invokes the common dBASE Editor described in FILES/Edit 
  1583. DBF automatically opening that record in the dBASE file corresponding 
  1584. to the selected entity.  The dBASE Editor edits the entity record as a 
  1585. general DBF record and without any special intelligence.  Therefore you 
  1586. should avoid changing the key field (TILE) or the 
  1587. LATITUDE/LONGITUDE fields from which the TILE's value is 
  1588. calculated.  (Small changes within the same 5 degree by 5 degree tile 
  1589. are okay. Use the Move command which updates these fields properly.)  
  1590. An improperly assigned TILE number may allow it's entity to display in 
  1591. certain circumstances, but not in zoomed situations.  Also you won't be 
  1592. able to select the entity with the Change command to change it back.  
  1593. (Use the FILES/Edit DBF command to access and fix the errant record.)  
  1594. You can use the Change command to determine in which file an entity 
  1595. is stored.  The file name and record number are displayed in the footer.
  1596. The database scan caused by the Change command displays a small dot 
  1597. at all entities' origins in the highlight color in the 5 by 5 tile in which 
  1598. you click.  If you aren't sure exactly where an entity's origin is, clicking 
  1599. near it with the Change command will cause it to be highlighted.  Click 
  1600. near enough of course, and you'll select the entity itself, which is 
  1601. generally the point!
  1602. Change is useful in that it allows access to entities marked for deletion 
  1603. permitting you to undelete them.  (<CTRL>Del and Del)  Because 
  1604. deleted items aren't normally displayed, use the click-in-the-same-tile 
  1605. technique described above to display the origins of deleted entities.  
  1606. Clicking the origin of a deleted entity will display it temporarily to 
  1607. allowing you to determine if you've got the entity you want.
  1608. If two entities overlie each other exactly, you can access only the top 
  1609. one.  If you want the bottom one, mark the top one for deletion and then 
  1610. use the Move command to move the now-exposed bottom entity slightly 
  1611. to allow direct access to it.  Select and undelete the old top entity.
  1612. Insert
  1613. Insert asks you to enter an existing database name to which to add a 
  1614. new MAPIT DBF entity.  If you want to create a new database, use the 
  1615. FILES/New DBF menu item to create the database and its first record.  
  1616. Insert determines the type of entity you are adding by accessing the 
  1617. first record of the database.  You are prompted to select a location for 
  1618. this entity using the cross hairs or keyboard entry.  Finally the Insert 
  1619. command invokes the dBASE Editor to allow you to personalize the new 
  1620. entity further.
  1621. Delete
  1622. The Delete command is a short-cut way to select and delete DBF 
  1623. entities.  After you have selected an entity with the mouse-controlled 
  1624. cross hair, Delete displays both the entity's file name and record 
  1625. number and asks you if you are certain you wish to delete it.  You can 
  1626. always undelete it with the Change command by entering the Del key 
  1627. from within the DBF Editor.
  1628. Layers
  1629. A layer is really nothing more than a number assigned to each MAPIT 
  1630. entity.  Color and visibility are associated with these numbers or layers.  
  1631. MAPIT supports up to 256 layers. Layers 0 through 119 are reserved 
  1632. for the main MAPIT database. Layers 120 through 255 are left for user 
  1633. input. By default, objects you enter are placed on the Current Layer and 
  1634. are displayed in that layer's color.
  1635. The sub menu displayed by the Layers command shows at a glance the 
  1636. Current Layer, its color, and whether all, some, or none of the layers 
  1637. are visible.
  1638. Current Layer
  1639. Use the Current Layer command to reset the Current Layer to a 
  1640. different value. All entities defined after this time will be assigned the 
  1641. new Current Layer.  Already-defined entities will retain the Current 
  1642. Layer assignment in effect when they were created.  Entering a return 
  1643. with no other value after display of the default value [nn] is a do-
  1644. nothing action which retains the current Current Layer.
  1645. Layer 120 is the default Current Layer.
  1646. Color
  1647. Color is a display menu item showing the color assigned to the Current 
  1648. Layer.  One color is assigned to each layer. 
  1649. Change Color
  1650. Change Color displays yet another sub menu which you can use to 
  1651. display and change the color of any layer.  Assigning new colors to 
  1652. layers allows you to control the colors with which entities are displayed.  
  1653. You could, for instance, turn all rivers from blue to red by reassigning 
  1654. the layers on which rivers are defined to color number 4, red. You can 
  1655. assign any color to any layer you wish. Objects on that layer will be 
  1656. shown in that color the next time they are displayed if they themselves 
  1657. default to the layer color (have a color of -1).
  1658. Clicking on Layer changes the focus to another layer and displays its 
  1659. color swatch.  Use Color to assign a new color number.  All to default is 
  1660. dangerous.  With one click you can undo all your past color 
  1661. reassignments.
  1662.  
  1663. Color 
  1664. Number
  1665. Color Name
  1666. Color 
  1667. Number
  1668. Color Name
  1669. black 
  1670. gray
  1671. blue  
  1672. 9  
  1673. light blue
  1674. 2  
  1675. green 
  1676. 10
  1677. light green
  1678. 3  
  1679. cyan   
  1680. 11 
  1681. light cyan
  1682. 4   
  1683. red    
  1684. 12  
  1685. light red
  1686. 5   
  1687. magenta
  1688. 13
  1689. light magenta
  1690. 6    
  1691. brown  
  1692. 14 
  1693. yellow
  1694. 7   
  1695. white    
  1696. 15   
  1697. bright white
  1698. There are 16 colors, 14 of which are assigned to layers on a rotating 
  1699. basis.  Colors 1 through 14 are assigned to layers. MAPIT uses Black to 
  1700. overwrite and delete and Bright White to highlight during object 
  1701. selections.
  1702. See Appendix A for a complete layer color assignment chart.
  1703. Visibility
  1704. All layers begin life in an active state but can be turned off to make 
  1705. their entities invisible for display purposes and immune from any EDIT 
  1706. commands. Turning off a layer does not remove from the screen 
  1707. already-displayed objects that reside on that layer.  They will be 
  1708. missing on the next repaint. This technique is how the DISPLAY 
  1709. toggles work. Similarly, you can Copy & Delete only objects which are 
  1710. on "on" layers. Turning off a layer or range of layers is like read/write-
  1711. protecting them.
  1712. All visible
  1713. Clicking All visible turns on all layers.
  1714. Make visible
  1715. Make visible allows you to turn on a single layer or a range of layers.
  1716. Make invisible
  1717. Make invisible allows you to turn off a single layer or a range of layers.
  1718. All invisible
  1719. Clicking All invisible turns off all layers.
  1720. Private File
  1721. Display the name of the current private or extended file, the file to 
  1722. which all line or .mp3 entity insertions are stored.  Use the calling 
  1723. argument /extended=file_name when starting MAPIT to assign a 
  1724. different private file.
  1725. Note:  Menu items below this point refer to objects stored in the 
  1726. extended .MP3 file.  Use DBF Entities above for the new style .DBF 
  1727. point entities.  Lines must, of course, always be saved in .MP3 files.
  1728. Insert
  1729. Insert objects into the extended database on the current layer and 
  1730. displayed in the color of that layer. The extended data file is updated at 
  1731. the completion of each entity's entry reducing data loss because of 
  1732. power failure.  
  1733. With the exception of line and xline, the entities described in this 
  1734. section are point entities which can also be held in .DBF entities 
  1735. described above.
  1736. city
  1737. Enter a city by filling in the information requested by the entry screen. 
  1738. MAPIT will initially ask for a name and a location before continuing to 
  1739. the entry screen. The Min and Max Zoom Factor are those zoom factors 
  1740. for which the city first appears and then disappears.  Zero means it 
  1741. never disappears.  Above, Even, and Below refer to the choice of placing 
  1742. the city's name exactly to the right of the marker or offset above or be-
  1743. low to reduce conflicts with nearby cities. A forced color is a color 
  1744. number which takes precedence over the default color of the assigned 
  1745. layer. Replace inserts the new city data at the initial requested location 
  1746. while Move allows you to reposition the city which you entering by 
  1747. clicking with the left mouse button.  Abort, of course, aborts the entire 
  1748. entry process.
  1749. Displaying cities of all sizes, all the time, would clutter the screen. 
  1750. Therefore cities are made visible by zoom factor according to size:
  1751.  
  1752.  
  1753. Population
  1754. Minimum 
  1755. zoom (US)
  1756. Minimum 
  1757. zoom 
  1758. (elsewhere) 
  1759. Font
  1760. Marker
  1761. > 500,000
  1762. or national 
  1763. capital
  1764. 10
  1765. 10
  1766. 1
  1767. double 
  1768. circle
  1769. > 50,000
  1770. 30
  1771. 30
  1772. 1
  1773. circle
  1774. > 5,000
  1775. 300
  1776. 50
  1777. 1
  1778. small circle
  1779. > 0
  1780. 750
  1781. 150
  1782. 4
  1783. small circle
  1784. figure
  1785. The figure option is a powerful means of replicating miniature simple 
  1786. line drawings throughout the displayed map. You must define figures 
  1787. before using them (see FIGEDIT), storing them in the file std.fig and 
  1788. inserting each figure by name in a map's database. Multiple instances 
  1789. of a figure may be inserted. The actual figure is not included in the 
  1790. database, only a reference to it by name. For the figure to be displayed 
  1791. properly, the figure file you used while inserting your figures must be 
  1792. present. You can, of course, globally change a figure by replacing it in 
  1793. the figure file with another of the same name or using an alternative 
  1794. figure file with similarly named figures.
  1795. Choosing the Insert/figure menu option brings up a window containing 
  1796. a list of figures in your figures file.  As you move the mouse over the 
  1797. name, the name of the current figure is displayed in the status line at 
  1798. the bottom of the screen.  Depress the left mouse button to choose a 
  1799. figure or the right one to abort. Cross hairs appear to help you in the 
  1800. initial positioning of the figure while the changing latitude/longitude is 
  1801. visible in the right half of the status line.  Pressing the left button 
  1802. positions the figure and opens the menu pictured above.
  1803. Use this final menu to change the figure's Scale (size), Layer, Forced 
  1804. Color if any, and to Save as is, Move, or Duplicate.  Duplicate means to 
  1805. place additional copies of the figure at other locations with the left 
  1806. mouse button finishing with the right button.
  1807. line
  1808. You can enter multisegmented lines of any length. Hold the left mouse 
  1809. button down and notice the temporary "rubber band graphics" tying the 
  1810. starting point of the line segment to the current mouse position. As you 
  1811. move the cursor, notice that the latitude and longitude on the status 
  1812. line are continuously updated to aid in accurate line positioning. 
  1813. Releasing the left button fixes the last line segment.
  1814. If, while you are close to the end of the last segment (the release point), 
  1815. you press the left button again, you'll begin a new segment connected to 
  1816. the last. On the other hand, if you click the left button while you are a 
  1817. distance from the end of the last segment, the line is ended, the data is 
  1818. stored, and the temporary graphics are replaced with a permanent line.
  1819. If you click the right mouse button while inserting a line, one segment 
  1820. of the temporary line is deleted for each press and release. If you try to 
  1821. back up beyond the start of the first line segment, the entire 
  1822. EDIT/Insert/line command is aborted. No data is stored.
  1823. There are limits of approximately 100 feet (somewhat less at higher 
  1824. latitudes), to the precision of data entered into the database. If you try 
  1825. to enter data with more precision than this, the temporary graphics will 
  1826. look good but will not be permanently reflected in the database, as your 
  1827. first repaint will demonstrate.
  1828. xline
  1829. Xline refers to exact lines which can be placed more precisely via the 
  1830. keyboard.
  1831. stroked text
  1832. Stroked text is drawn directly over a portion of MAPIT's display. The 
  1833. program first asks you to choose a temporary location on which the text 
  1834. will be drawn as you compose and change it. Choose a location which 
  1835. will give you adequate room to see and deal with your text; you can 
  1836. change to the permanent location later.
  1837. As you enter the text from the keyboard, the stroked text will appear in 
  1838. default font and size at the temporary location. Special characters you 
  1839. have mapped to your keyboard can be used, even though they may not 
  1840. be displayed properly in the default font. (Function Keys F1 through 
  1841. F12 are mapped to ASCII characters 20 through 31.) Entering a return 
  1842. takes you to the start of the next line under the first character of text 
  1843. you entered. You can correct text by backspacing to the incorrect 
  1844. letter(s) and reentering. Press Esc to exit the text entry mode.
  1845. Next, the program displays an option menu with which you can change 
  1846. the attributes of your text or edit the text itself by choosing Text.  In the 
  1847. edit mode, your current position is at the end of the text string you've 
  1848. previously entered.
  1849. On this menu, Min and Max Zoom Factor refer to the zoom factors at 
  1850. which the text first appears and disappears as you increase zoom. If you 
  1851. leave the factors at zero, the text will fist appear when it grows to a 
  1852. legible size in the case of Map Relative text (see below for discussion of 
  1853. the Map Relative text entry mode). Remember that, for text to be 
  1854. visible, its origin (the insertion point) must be visible. The text may 
  1855. disappear as you zoom in, unless its origin is exactly in the center of 
  1856. your window. This happens because the origin has fallen outside the 
  1857. window.
  1858. Seven fonts are supplied in the MAPIT file std.fnt; the system 
  1859. capability is ten: 
  1860. Font 1 is the default. If the std.fnt file is missing at program startup, 
  1861. stroked text will not display. If you call for a font that has not been 
  1862. loaded, the system uses font 1 in its place. Font 1 is the simplest and 
  1863. displays fastest. The more complex a font (that is, the higher its 
  1864. number), the longer it takes for a given text string to display.
  1865. The two modes for stroked text entry are Map Relative and Screen 
  1866. Relative. Text which is Map Relative scales with the size of the map 
  1867. display as you zoom in and out. If you zoom out far enough, it becomes 
  1868. too small to be seen. Screen Relative text, on the other hand, is always 
  1869. the same size relative to the screen no matter what the zoom factor. It 
  1870. never grows or shrinks.
  1871. Size is an arbitrary number that is proportional to the size of the text 
  1872. on the screen and inversely related to the current zoom factor. The 
  1873. system suggests a text size for which the newly entered text will appear 
  1874. the same height on the screen independent of zoom. Consequently, the 
  1875. greater the zoom factor, the smaller the suggested text size. If you enter 
  1876. Map Relative text size of 0.2 at one zoom value and 0.2 at another zoom, 
  1877. the text will be the same height in both cases. The maximum size for 
  1878. Map Relative text is 10. Screen Relative text will always display at the 
  1879. entered size independent of zoom.
  1880. Not all sizes of Map Relative text are legal. This fact is most noticeable 
  1881. for large sizes and results from the encoding mechanism 10/n where n 
  1882. is a positive integer.  A value of n = 1 yields a text size of 10, 2 yields 5, 
  1883. 3, 3.333, and so on.  A Map Relative text size of 8, for instance, is 
  1884. impossible to attain, its n integer falling between 1 and 2 (1.25 exactly).  
  1885. This shortcoming is not as significant for smaller text sizes.
  1886. Stroked text can be entered at any angle divisible by 2. If you try to 
  1887. enter text at 45 degrees, for instance, MAPIT rounds that value to 46 
  1888. degrees and then draws the text rotated around its origin at that angle. 
  1889. Zero degrees is horizontal (right reading) and 90 degrees is vertical (up 
  1890. reading).
  1891. You can force the text to be placed on a layer different from the default 
  1892. layer and to have a forced color if so desired.
  1893. Finally, you can either Abort the text entry, Save the text as is, Move 
  1894. the text to another location, or choose one or more additional locations. 
  1895. When you choose locations, the cursor changes to cross hairs for more 
  1896. accurate placement and the status bar displays the exact 
  1897. latitude/longitude of the cursor. You can insert the text multiple times 
  1898. in different locations by clicking the left mouse button. Click the right 
  1899. button to abort/finish the operation.
  1900. hidden text
  1901. Hidden text hides behind a small triangle until you bring it forward by 
  1902. clicking the triangle with the left mouse button. When you enter hidden 
  1903. text, the entire screen is filled with a non scrolling window on which 
  1904. you can type any text as you would with a simple editor. The program 
  1905. uses the default screen font. Word wrap is automatic. The Enter 
  1906. character is the paragraph delimiter. As in stroked text, press Esc to 
  1907. terminate text entry. (You can to return to edit hidden text if 
  1908. necessary.)
  1909. After you have terminated text entry, the program displays an option 
  1910. menu with which you can change the layout of your text:
  1911. Min Zoom Factor is, again, the zoom factor at which the hidden text 
  1912. marker first becomes visible. This value defaults to about 2/3 of the 
  1913. zoom factor in effect when the hidden text is entered. A value of 0 or 1 
  1914. assures that the marker is always visible. (Hidden text markers are 
  1915. Screen Relative; they are of constant size and always visible except as 
  1916. limited by Min Zoom Factor.)
  1917. Window Width and Height display two values each. The first is the 
  1918. current value and the second is the computer's suggested setting. There 
  1919. is interaction between width and height. The computer calculates the 
  1920. minimum width based on the longest line and the screen width, and 
  1921. given that width, calculates the required height. If you enter a new 
  1922. width or height, the computer recalculates its suggested values. You 
  1923. must then change the other parameter (height or width) to the 
  1924. suggested setting, or reset your previous entry. Sometimes several 
  1925. iterations are necessary to produce the window you want. At any time 
  1926. you can View/Edit Text to review the current arrangement or to edit the 
  1927. text. View/Edit (Autosize) resets actual values to MAPIT's preferences.
  1928. In the absence of any overriding standards or artistic opinions, you will 
  1929. probably want to use wide short windows; they are easier to read than 
  1930. narrow tall ones. When you view hidden text, MAPIT opens whatever 
  1931. size window you have created and positions it as close to the marker as 
  1932. possible.
  1933. Choose Location(s) or Abort as you would for Stroked Text to insert zero 
  1934. or more instances of this hidden text.
  1935. Selecting
  1936. Several of the following EDIT commands share the concept of selecting 
  1937. objects on which to perform an operation. Selecting consists of drawing 
  1938. a rectangle on the screen using the mouse. The database[s] are scanned 
  1939. for objects falling within that rectangle; when found, the objects are 
  1940. highlighted in bright white. (The database scan can take a significant 
  1941. time.) At the end of the highlight process, MAPIT asks the user if he 
  1942. wishes to continue. The user responds affirmatively with Y or y (yes), or 
  1943. negatively with any other input. The command either continues or 
  1944. aborts. The yellow selection rectangle remains to indicate the extent of 
  1945. the operation.
  1946. To abort any selected option at the start, click on and off without 
  1947. moving the mouse. This creates a null-sized selection rectangle.
  1948. Change
  1949. Change .MP3 objects once they have been inserted into the extended 
  1950. database. If you try to select an entity on your screen and it doesn't 
  1951. highlight, it either is not a .MP3 entity or it is not in the extended file 
  1952. where it can be changed.
  1953. city
  1954. Position the mouse-controlled cross hairs over the city to be change and 
  1955. click the left button.  A menu similar to the Insert/city menu provides 
  1956. control.
  1957. figure
  1958. You must select a figure by including its origin in a selection rectangle 
  1959. (see above).  Once selected, a menu similar to the Insert/figure menu 
  1960. provides control. Note: If you change an existing figure's property such 
  1961. as color and then choose Duplicate, the color of the original will not be 
  1962. permanently changed but will upon repaint display as it was originally.  
  1963. The duplicate figure, however, will permanently display the new 
  1964. changed color. If you want to change the original, you must Replace it.
  1965. line
  1966. To change a line, you must include at least one of the line of interest's 
  1967. nodes within the selection rectangle.  MAPIT highlights the line when 
  1968. it is selected and a menu displaying the Layer, Forced Color, and the 
  1969. commands Replace, Move, and Abort appears.  Replace applies any 
  1970. layer or color changes to the existing line. Move permits movement of 
  1971. each of the line's nodes to a new location (within the approximate limit 
  1972. of 7 degrees from the line's first node).  The cross hairs jump to the 
  1973. selected line's first node if visible.    
  1974. When the cross hairs are close to any node, a rectangular box appears 
  1975. around that node's position: you can move the selected node by 
  1976. depressing the left mouse button, dragging it to a new location and 
  1977. releasing the button.  You can do this for any number of nodes in a 
  1978. single line.  Click the left mouse button outside a selection box to 
  1979. complete the change to the line.  Clicking the left button aborts the line 
  1980. change.
  1981. You cannot change a line in the main database. (If you really want to, 
  1982. make a backup of the main database and open MAPIT with a nul main 
  1983. database and /extended=world.  All changes will then be made to what 
  1984. is normally the main database.  Be careful!)
  1985. stroked text
  1986. Select stroked text by including its origin in a selection rectangle. Recall 
  1987. that the origin of stroked text is at the baseline and left of the first 
  1988. letter.  Once selected, a menu similar to the Insert/stroked text menu 
  1989. provides control.
  1990. hidden text
  1991. Position the mouse-controlled cross hairs over the hidden text to be 
  1992. change and click the left button.  A menu similar to the Insert/hidden 
  1993. text menu provides control.
  1994. Delete
  1995. Deletes the selected objects from the extended but not from the main 
  1996. database. Note that deleting while you are zoomed in very close may 
  1997. eliminate not only visible objects, but those which are invisible at your 
  1998. current zoom factor. Deletion does not shrink the database.
  1999. Assign to Layer
  2000. Move selected objects in the extended database from their current 
  2001. layers and assign them to a new layer. Object data are not moved. Both 
  2002. visible and invisible objects are reassigned.
  2003. Copy
  2004. Copy selected objects from the main to the extended database. If 
  2005. obviously visible objects are not selected, they may well be in the ex-
  2006. tended database already. Objects cannot be duplicated in the same 
  2007. database. Both visible and invisible objects are copied.
  2008. The MAPIT copy function does not preserve original regions. (See the 
  2009. discussion of regions under Working with MAPIT Files/Regions.)
  2010. Copy & Delete
  2011. Copy selected objects from the main to the extended database and then 
  2012. deletes the originals. The purpose of this command is to transfer data 
  2013. once and only once from one file to another. You must invoke MAPIT 
  2014. with the /delete command line argument because the main database is 
  2015. normally opened read-only. If obviously visible objects are not selected, 
  2016. they may well be in the extended database already. Both visible and 
  2017. invisible objects are moved.
  2018. DISPLAY
  2019. Control the display of MAPIT features Clicking on selections toggles on 
  2020. and off the layers on which these features are stored.
  2021. Grid
  2022. Toggle on and off latitude/longitude markings. Turning off the grid sets 
  2023. previously grid-colored pixels black. These black pixels may obscure 
  2024. object detail until the next repaint or overwrite.
  2025. All Features
  2026. Displays or changes the status of which layer features are active.  `?' 
  2027. indicates some are and some aren't.  A check indicates all are.  Cycles 
  2028. through the choices.  Selecting features for display is accomplished in 
  2029. the following menus or by turning layers on or off directly in the 
  2030. EDIT/Layers menu.
  2031. The following major feature types call menus controlling the display of 
  2032. specific features/layers.  Selecting all features may, depending on the 
  2033. zoom factor, slow down screen repaint and result in a jumble of 
  2034. confusing lines.  Not all features are available at every zoom level.  
  2035. Small rivers become visible at zoom 24 and beyond.  (Major breaks are 
  2036. at zoom 2, 6, and 24 for line (.MP3) entities.)  Point entities such as 
  2037. cities and text are also phased in at different scales.  Some cities 
  2038. become visible at 1:4,000,000, some at 1:2,000,000, and the smallest at 
  2039. 1:1,000,000.  The thresholds for point entities are set in the scan table 
  2040. which you may modify.  For instance, you could set all cities to be 
  2041. visible at any scale and in the Cities & Landmarks menu turn off the 
  2042. text to show only the symbols.  Displaying at a zoom of 1 would give an 
  2043. indication of population density around the world although the screen 
  2044. would take quite a while to paint as MAPIT processed some 200,000 
  2045. cities.
  2046. Boundaries:
  2047. Rivers:
  2048. Roads:
  2049. Railroads:
  2050. Utilities:
  2051. Transportation Structures:
  2052. Please note that airports are controlled by Transportation Text under 
  2053. Transportation Structures.  Data near England, Japan, and India is 
  2054. missing entirely and is unavailable.
  2055. Cities & Landmarks:
  2056.  
  2057. Ocean Features:
  2058. The oceanographic contours are, in general,  1:3,000,000 scale while the 
  2059. ones marked as approximate are much less detailed.  Plate Boundaries 
  2060. are self-explanatory.  Fracture Zones are lines of weakness in the 
  2061. earth's crust that cross the diverging sea floor boundaries at right 
  2062. angles forming short areas where plates grind past one another. 
  2063. Magnetic Lineations are more mysterious but appear to be small local 
  2064. fields induced by the magnetic minerals contained in the spreading 
  2065. volcanic rock masses comprising much of the ocean basin floor.
  2066. Land Cover:
  2067. Units of Measure
  2068. Cycle through Statute Miles, Nautical Miles, and Metric.  Used in the 
  2069. display of distances.
  2070. Lat/Long Format
  2071. Cycle through Degrees, Minutes, Seconds, and Decimal Seconds.  Used 
  2072. in the right footer to display the location of the mouse.
  2073. Screen Width
  2074. Measured in inches to calculate the scale displayed in the footer.
  2075. Version
  2076. Particulars about this product and its operation.  Virtual memory refers 
  2077. to the amount of conventional memory dedicated to supporting virtual 
  2078. memory (XMS, EMS, or disk) activity.  Free refers to the actual amount 
  2079. of conventional memory unused by MAPIT but necessary for proper 
  2080. operation during certain commands.  This figure never grows too large, 
  2081. the excess being allocated to virtual memory.  The number and size of 
  2082. regions reflects the amount of data in your main and extended 
  2083. databases.
  2084. Working with MAPIT Files:
  2085. File Names and Conventions
  2086. MAPIT's mapping data is stored in special binary files having the 
  2087. extension .MP3. These files have a highly structured internal format 
  2088. designed to speed the display of data on the screen. These files also 
  2089. have the useful property that two or more .MP3 files can be 
  2090. concatenated together to form a new larger file. (See the example below 
  2091. of using the DOS COPY command with the /B switch.) If the internal 
  2092. structure of a .MP3 file becomes corrupted, MAPIT responds with an 
  2093. error message stating that it has lost sync during a file read. No data 
  2094. beyond that point is available to the user. The file must be replaced.
  2095. MAPIT uses two default file names for storing .MP3 data: 
  2096. WORLD.MP3 for its primary database and EXTENDED.MP3 for the 
  2097. current private database. You can run MAPIT against other primary 
  2098. and extended databases by explicitly specifying their names as you 
  2099. invoke MAPIT:
  2100.     C:> MAPIT alt_db  /entended=private
  2101. MAPIT expects alternative databases to have the .MP3 extension 
  2102. unless you explicitly invoke them with other extensions.
  2103. When you enter data into MAPIT, the data is stored in the private file 
  2104. EXTENDED.MP3. You should use private databases when storing your 
  2105. own data or transferring it to others. The smaller file size makes these 
  2106. actions much more efficient. 
  2107. You can combine several of your private files with the binary COPY 
  2108. command:
  2109.     C:> COPY /B FILE_1.MP3+FILE_2.MP3+...  BIG.MP3
  2110. or
  2111.     C:> COPY /B FILE*.MP3  BIG.MP3
  2112. Remember that, once files are combined, they can't be separated. Don't 
  2113. delete the originals until you are sure everything is all right. And don't 
  2114. combine your private data with the primary MAPIT database 
  2115. WORLD.MP3.
  2116. Private Database Management
  2117. As mentioned above, MAPIT uses the default file name 
  2118. EXTENDED.MP3 for storing your private database. Suppose you want 
  2119. to make and support two private databases, each to be distributed to a 
  2120. different set of users. The first involves the Philippines and the second 
  2121. Hawaii. Obviously you don't want to use the default private database 
  2122. name EXTENDED.MP3.  When you're working with the Philippines 
  2123. data, start MAPIT using:
  2124.     C:> MAPIT  /EXTENDED=PHIL
  2125. and when working with Hawaii, start MAPIT using:
  2126.     C:> MAPIT  /EXTENDED=HAWAII
  2127. Now you have two separate .MP3 files, each with its own data. If you or 
  2128. your users want to view that data, you can do so directly (without the 
  2129. benefit of MAPIT's database) by entering
  2130.     C:> MAPIT  PHIL
  2131. More than likely, you will want to use the backdrop of MAPIT's 
  2132. database in the normal way. If in the future you have a user who wants 
  2133. to use both the Hawaii and Philippines data at the same time, combine 
  2134. them with the binary COPY command:
  2135.     C:> COPY /B PHIL.MP3+HAWAII.MP3  COMBO.MP3
  2136. Regions
  2137. If MAPIT had to traverse the entire 250MB WORLD.MP3 database 
  2138. every time it re-displayed an image, screen repaints would be extremely 
  2139. slow. The primary method MAPIT uses to speed the display from large 
  2140. databases is to divide the data into regions. Regions are special 
  2141. database header records whose extents are defined by the mapping data 
  2142. following them.
  2143. Each .MP3 must begin with a region header. When you add objects to 
  2144. MAPIT, the first record written to a new EXTENDED.MP3 file is a 
  2145. region header. As you add more and more data to the personal 
  2146. database, the data is appended to the end of the file while the region 
  2147. header is updated to reflect the new data. If, for example, all the data 
  2148. you enter is centered in the Indian subcontinent, the total extent of this 
  2149. new data updates the region header. When India is not on the screen, 
  2150. the EXTENDED file is not even scanned for possible displayable data. 
  2151. Its region header indicates that none of its data is visible.
  2152. Region headers are created automatically, but you must be aware of 
  2153. them if you try to import or enter large amounts of data. The only way 
  2154. for you to start a new region header is to begin a new EXTENDED.MP3 
  2155. file. In other words, rename the old EXTENDED.MP3 file to force the 
  2156. creation of a new EXTENDED file when you enter more data. When you 
  2157. finish, concatenate the two files together to get a single file with two 
  2158. region headers. 
  2159. This only becomes an issue when your files grow so large that a linear 
  2160. scan begins to slow down MAPIT's overall performance.  Then you 
  2161. want to divide your large single-region file into one with several non 
  2162. overlapping regions.
  2163. How can you create multiple regions from a large single-region file?  
  2164. (See the utility MP3MOD for an alternate method to that outlined 
  2165. here.) Rename EXTENDED.MP3, make a backup, and then open it as 
  2166. MAPIT's primary data file remembering the /delete switch. Be sure 
  2167. there is no EXTENDED file. Copy/Delete region-sized areas from the 
  2168. primary to the secondary file. (Copies are always from the primary to 
  2169. the EXTENDED file.) Exit MAPIT and rename EXTENDED.MP3 - 
  2170. perhaps to X1.MP3. Repeat these steps until all data has been copied 
  2171. and deleted from the original primary file. Finally, combine the 
  2172. separate files using the binary COPY command:
  2173.     C:> COPY /B X*.MP3  TOTAL.MP3
  2174. The final result is a file with manageable regions. MAPIT's 
  2175. WORLD.MP3 database consists of a great many regions split on 5 x 5 
  2176. degree tile boundaries, carefully constructed and designed to give 
  2177. reasonable performance in spite of the vast amounts of data involved. If 
  2178. you try to copy a sizable portion of this data to your private database, 
  2179. all copied data will be stuffed into one 'super region' in 
  2180. EXTENDED.MP3. Performance when accessing your private database 
  2181.  
  2182. FIGEDIT
  2183. FIGEDIT is the figures creation/editing program used to supply figures 
  2184. for MAPIT. Figures are small drawings that you can insert one or more 
  2185. times in your maps. The figures are stored in files ending in the 
  2186. extension .fig. At startup, MAPIT looks for the file STD.FIG and tries 
  2187. to resolve references to figures names from that file.
  2188. FIGEDIT is an editor of memory-resident objects. Run FIGEDIT 
  2189. without any command arguments. When it starts up, there are no 
  2190. entities in the current figure and the current figure is nameless. 
  2191. FIGEDIT displays a menu along the top of screen from which you can 
  2192. choose items. The status bar at the bottom of the screen shows the 
  2193. default figure scale, entity count, figure title, and file name.
  2194. Menu Commands:
  2195. FILE
  2196. New
  2197. Creates a new file to hold figures data.
  2198. Open
  2199. Opens a file for input/output to FIGEDIT. The names of all figures 
  2200. contained in the newly opened file is listed for informational purposes. 
  2201. Enter return or click the left mouse button to proceed.
  2202. Close
  2203. Saves and closes an open figures file.
  2204. Exit
  2205. Saves and closes an open figures file if there is one and exits from the 
  2206. FIGEDIT.
  2207. FIGURES
  2208. The Figures menu controls the loading and display of figure objects 
  2209. found within an open figures file.
  2210. Redraw Full
  2211. Redraws the figure currently loaded into memory to be redrawn at full 
  2212. size, the size in which editing is done.
  2213.  
  2214. Display at Scale
  2215. Display the current figure at the default scale displayed in the status 
  2216. line.
  2217. New
  2218. Begin a new in-memory figure.
  2219. Load
  2220. Load a figure from those in the current figure file.  Click the left mouse 
  2221. button over your choice of names on the screen.
  2222. Save
  2223. Save any changes made to the current in-memory figure to the current 
  2224. figure file.
  2225. Save as
  2226. Save the current in-memory figure under a new name in the current 
  2227. figure file.
  2228. Remove
  2229. Delete a figure from the current figure file.  The deleted figure is loaded 
  2230. into memory giving you a chance to save it in another figure file or 
  2231. under another name.
  2232. INSERT
  2233. One builds figures by entering objects from the INSERT menu. As 
  2234. construction continues, a tally of the entity count is displayed at the 
  2235. bottom of the screen. There is an entity count limit of 100. The more 
  2236. complex objects consume more entities, building to that limit.
  2237. As you insert objects, they are displayed on the screen at 100-percent 
  2238. size. Remember that the final display size will be much smaller. The 
  2239. default is 10 percent. Detail will disappear or will clutter the final 
  2240. figure.
  2241. Line
  2242. Insert multiple straight-line segments by clicking and dragging with 
  2243. the left mouse button. Double click the left button to end, the right 
  2244. button to back up a segment.
  2245. Rectangle
  2246. Insert rectangles by specifying the opposite diagonal corners of the 
  2247. rectangle you wish to enter.
  2248. Arc
  2249. Enter the center and the radius of the arc. FIGEDIT draws a complete 
  2250. temporary circle and asks you to enter start and stop angles. Arcs are 
  2251. constructed counter-clockwise. The start and stop angles are points 
  2252. relative to the circle's center (not necessarily on the circumference) 
  2253. anywhere on the screen. Enter the start angle first, followed by the stop 
  2254. angle. The circle will disappear and the arc will appear in its place.
  2255. Circle
  2256. Enter the center and the radius of the circle. 
  2257. Ellipse
  2258. Insert ellipses by specifying the opposite diagonal corners of an 
  2259. enclosing rectangle. You can enter only horizontal or vertical ellipses.
  2260. CHANGE
  2261. Origin
  2262. Each figure has an origin. When you insert a figure into a map, you 
  2263. actually specify where the origin of the figure will be placed. The rest of 
  2264. the figure is displayed relative to the origin. FIGEDIT marks the origin 
  2265. with a blue cross. Its default position is the screen's center. You can 
  2266. change that location to any place on the screen.
  2267. Scale
  2268. Normally figures are not displayed in maps at the scale in which they 
  2269. were drawn, but as smaller images. The default scale is 10 percent, but 
  2270. you can change that to any value you want.
  2271. Delete
  2272. Delete allows you to remove entities, but you must be careful.  Move to 
  2273. the end of a line, to the radius of a circle or arc, or to the major or minor 
  2274. radius of an ellipse and press the left mouse button.  A small square 
  2275. appears if you've chosen an object, and the object type currently being 
  2276. considered appears in the status line. After affirming the deletion, the 
  2277. entity remains until the next repaint.  If more than one entity occupies 
  2278. a spot, the first entity laid down is chosen.  Be aware that an arc can be 
  2279. selected for deletion anywhere on its radius, even on the on the clipped 
  2280. (non displayed) portion!  Getting a deletion square in the middle of 
  2281. nowhere means that something is being deleted!
  2282. Tips:
  2283. You needn't be in a figure or file to begin editing.
  2284. You can transfer figures from one file to another:
  2285. *    Open a file
  2286. *    Load a figure
  2287. *    Save-as to another or new file.
  2288. The key to good figures is to keep them simple. Detail which looks good 
  2289. at full screen is clutter at 10 percent. (Here's where artistic talent is 
  2290. invaluable!)
  2291. Like .mp3 files, .fig files can be concatenated with the binary copy.
  2292.  
  2293. GEOCODE
  2294. This MAPIT utility geocodes or adds latitude/longitude information to 
  2295. records of a dBASE IV file.  An input file must be run against a key file 
  2296. to yield the output file.  All these files must be in dBASE IV format.
  2297. The GEOCODE Command Line:
  2298. Usage:
  2299.     GEOCODE [input_file]  [output_file] [/options...]
  2300. where
  2301. input_file
  2302. -
  2303. an optional dBASE IV file holding the 
  2304. records to be geocoded.  Assumes a .DBF 
  2305. extension.
  2306. output_file
  2307. -
  2308. an optional dBASE IV database name in 
  2309. which the geocoded data will be stored.  
  2310. There are normally more fields in the 
  2311. output_file than in the input_file.  If the 
  2312. /inplace option is used, the output_file must 
  2313. not be specified.  Extensions supplied.
  2314. options:
  2315. /inplace
  2316. -
  2317. Update the input_dbf.  Output fields must 
  2318. already exist.
  2319. /lookup_dbf =
  2320. -
  2321. a dBASE IV file holding the 
  2322. latitude/longitude and a key field.  
  2323. Assumes a .DBF extension
  2324. /key=
  2325. -
  2326. the primary key field name.  e.g.  ZIP
  2327. /k_length=
  2328. -
  2329. the match limit on the primary key.
  2330. /definition=
  2331. -
  2332. a .DEF file holding definitions which may 
  2333. augment or replace those given here as 
  2334. command line arguments.  Command line 
  2335. arguments take precedence over statements 
  2336. in the definition file.
  2337. /append
  2338. -
  2339. add newly geocoded data to the end of the 
  2340. output_file.
  2341. /overwrite
  2342. -
  2343. delete any data in an existing output_file 
  2344. before adding the newly     geocoded data.  
  2345. By default, an error message is issued if the 
  2346. output_file already exists and neither the 
  2347. /append nor the /overwrite option is given.
  2348. /matched
  2349. -
  2350. transfer records with 1 or more matches in 
  2351. the lookup_dbf.
  2352. /unique
  2353. -
  2354. transfer records with exactly 1 match in the 
  2355. lookup_dbf.
  2356. /first
  2357. -
  2358. don't search beyond the first match in the 
  2359. lookkup_dbf.  If there are mutiple, the 
  2360. geocoded result is the average of all 
  2361. matches unless this option is used.
  2362. /max_range=
  2363. -
  2364. include only records within this range.
  2365. /min_range=
  2366. -
  2367. include only records beyond this range..
  2368. /units=
  2369. -
  2370. min/max range units: miles, nmiles, 
  2371. kilometers, km, yards, feet, ft
  2372. /center=
  2373. -
  2374. calculate the distance from this location to 
  2375. the geocoded distance for each record.  No 
  2376. space allowed between latitude and 
  2377. longitude unless the string is delimited by 
  2378. quotation marks.  e.g. 
  2379. /center=40:30.84N79:36.94W
  2380. /version
  2381. -
  2382. display program's version.
  2383. /?
  2384. -
  2385. display this output.
  2386. Definition File:
  2387. GEOCODE's command line arguments are so numerous that you can 
  2388. place some or all of them within a definition file having the extension 
  2389. .DEF.  This file is free format on a line-by-line basis and uses the `;' 
  2390. character as a comment.  Everything to the right of the comment 
  2391. character is ignored.  The order of statements is not important.  Certain 
  2392. combinations are illegal.  Many of the following commands can also be 
  2393. entered as command line arguments.  For instance, UNIQUE: 
  2394. corresponds to /unique.  Selections made at the command line override 
  2395. those made in a definition file allowing you to have a general definition 
  2396. which you can override easily at program invocation.  Reference your 
  2397. definition file from the command line with the /definition option as in
  2398.     C:\>  geocode  /definition=my_def
  2399. Specify the input file:
  2400. INPUT DBF: file_name
  2401.  
  2402. INPUT MDX: file_name
  2403. ;  optional
  2404. INPUT TAG: tag_name
  2405. ;  not supported
  2406. INPUT DBF is the database you want to geocode.  In general, it makes 
  2407. no difference if the input file has an index (.MDX file).  If you specify an 
  2408. INPUT MDX and an OUTPUT MDX, GEOCODE will try to create a 
  2409. similar index for the output file.
  2410. Specify the lookup file:
  2411. LOOKUP DBF: file_name
  2412.  
  2413. LOOKUP MDX: file_name
  2414. ;  defaults to LOOKUP DBF
  2415. LOOKUP TAG: tag_name
  2416. ;  defaults to "DEF_TAG"
  2417. LOOKUP EXP: 
  2418. dBASE_Expression
  2419. ;  needed if no .MDX exists for 
  2420. LOOKUP DBF.
  2421. The LOOKUP DBF must have an index file/key.  The MDX file_name 
  2422. defaults to the DBF file_name and the tag_name defaults to 
  2423. "DEF_TAG" unless otherwise specified.  If no LOOKUP MDX exists for 
  2424. a DBF, you must specify a dBASE_Expression which, in general, 
  2425. consists of one or more field names connected with operators.  You can 
  2426. define multiple tag/expression combinations in any one MDX but can 
  2427. use only one-at-a-time.  This puts several indexes into one MDX file.  
  2428. The following, for example, is legal:
  2429.     LOOKUP DBF:      zipphone
  2430.     LOOKUP MDX:     zipphone
  2431.     LOOKUP TAG:    def_tag            ;  1st tag
  2432.     LOOKUP EXP:    upper(zip)          
  2433.     LOOKUP TAG:    city_state        ;  2nd tag
  2434.     LOOKUP EXP:    upper(city + state_code)          
  2435.     LOOKUP TAG:    county_city        ;  3rd tag
  2436.     LOOKUP EXP:    county + city          
  2437. If your LOOKUP DBF already has a defined MDX, there is no need to 
  2438. go to all this trouble.  GEOCODE will select from the tags/expressions 
  2439. available.
  2440. Specify the output file:
  2441. OUTPUT DBF: file_name
  2442.  
  2443. OUTPUT MDX: file_name
  2444. ;  optional
  2445. OUTPUT TAG: tag_name
  2446. ;  not supported
  2447. OUTPUT EXP: 
  2448. dBASE_Expression
  2449. ;  not supported.
  2450. INPLACE:
  2451. ;  updates INPUT DBF.  All output 
  2452. fields must be defined.
  2453. OVERWRITE OUTPUT:
  2454. ;  overwrite, append, or error msg.
  2455. APPEND OUTPUT:
  2456.  
  2457. LAT: lookup_field output_field
  2458. ;  latitude field names in the 
  2459. lookup and output files.
  2460. LON: lookup_field output_field
  2461. ;  longitude field names in the 
  2462. lookup and output files.
  2463. RECORD DISTANCE: 
  2464. output_field
  2465. ;  save the great circle distance 
  2466. from CENTER. 
  2467. RECORD MATCH: 
  2468. output_field
  2469. ;  save the match count.  0 or 
  2470. greater.
  2471. MATCHED ONLY:
  2472. ;  matched 1 or more times
  2473. UNIQUE:
  2474. ;  matched exactly once.
  2475. The OUTPUT DBF is a copy of the INPUT DBF but may contain more 
  2476. fields and fewer records depending on matching and selection criteria.  
  2477. The INPLACE option updates the original if the original has enough 
  2478. fields.  The fields of unmatched records will not be changed if 
  2479. MATCHED ONLY or UNIQUE is specified.  MATCHED ONLY and 
  2480. UNIQUE act on the number of records in the lookup database matching 
  2481. the input record.  (See KEY below for what defines a match.)  If you 
  2482. specify neither, all records from the input file, matched or not, will be 
  2483. transferred.  You can specify that the number of matches be recorded in 
  2484. the output database with the RECORD MATCH statement.  The 
  2485. existence of the output database will generate an error message and 
  2486. halt further processing unless you indicate your desire to either 
  2487. OVERWRITE or APPEND to the output database.  The LAT and LON 
  2488. statements map the fields containing the latitude and longitude from 
  2489. the lookup database to the output database, the ultimate purpose of 
  2490. geocoding being to transfer this data to matching records.  The 
  2491. RECORD DISTANCE statement saves the great circle distance from 
  2492. each geocoded record to the location specified in the CENTER 
  2493. statement (See below).
  2494. Specify the selection options:
  2495. KEY:  lookup_field  input_field  
  2496. [length]
  2497. ;  matches key fields in the 
  2498. lookup and input files.  Multiple 
  2499. statements are permitted.
  2500. FIRST MATCH:
  2501. ;  stop lookup for this input 
  2502. record after the first match.
  2503. MATCH ONLY value IN FIELD 
  2504. input_field [length]
  2505. ;  match a constant value.
  2506. SKIP value IN FIELD input_field 
  2507. [length]
  2508. ;  skip a constant value.
  2509. CENTER: lat/lon_string
  2510. ;  the location from which you 
  2511. want to measure distances.  
  2512. Expects the standard free-format 
  2513. lat/lon string.
  2514. MAX RANGE: distance
  2515. ;  records beyond this range 
  2516. don't match.
  2517. MIN RANGE: distance
  2518. ;  records within this range 
  2519. don't match.
  2520. UNITS: units
  2521. ;  the units applied to the ranges 
  2522. above.  These must be spelled 
  2523. out completely (as opposed to 
  2524. the command line arguments 
  2525. version) and include miles, 
  2526. nmiles, kilometers, km, yards, 
  2527. feet,  and ft.  Defaults to miles.
  2528. You must specify at least one KEY statement to correlate fields in the 
  2529. lookup and the input files.  The optional length argument limits the test 
  2530. for a match to the first n characters of the fields.  Use this, for example, 
  2531. when matching a mailing list containing 9 character zipcodes to a 
  2532. lookup database of 5 character zips by setting length to 5.  You may 
  2533. have multiple KEY statements all of which must be satisfied for a 
  2534. record to be matched.  The first statement, however, is the only one for 
  2535. which an indexed lookup is performed in the lookup database.  If FIRST 
  2536. MATCH is not used, subsequent records are read from the lookup 
  2537. database until the first KEY no longer matches.  Closely related to the 
  2538. KEY statement which compares fields in the input and lookup 
  2539. databases are the MATCH ONLY and the SKIP statements.  These 
  2540. statements select or reject records based on matching a constant value 
  2541. against a field in the input database.  You may have only one of each of 
  2542. these statements.  An example would be to MATCH ONLY on zipcodes 
  2543. having the first three digits equal to "153" or all records whose state is 
  2544. "PA".
  2545. The CENTER statement establishes a single location from which the 
  2546. great circle distances to each matched record can be calculated.  Use the 
  2547. MAX/MIN RANGE statements to further exclude otherwise-qualifying 
  2548. records and optionally record those distances with the RECORD 
  2549. DISTANCE statement discussed above.  The UNITS statement 
  2550. indicates the units of the values in the MAX/MIN RANGE statements.  
  2551. If absent, the default is statute miles.
  2552. Example Output:
  2553. The following example is created by copying the lookup database 
  2554. ZIPPHONE.DBF from the MAPIT delivery CD-ROM and found in 
  2555. directory \MAPIT20\DBQS. When you geocode XLIST.DBF against it 
  2556. using the DEMO.DEF definition file (both found in 
  2557. \MAPIT20\EXAMPLES\GEOCODE), GEOCODE will create the 
  2558. index file ZIPPHONE.MDX at the time of the first execution and will 
  2559. produce the following output if executed as follows:
  2560. C:> geocode /def=demo
  2561.  
  2562. 64 records geocoded, 68 transferred out of 68.
  2563.  
  2564. min distance =     9.63 miles
  2565. avg distance =   435.32 miles
  2566. max distance =  2199.89 miles
  2567. from location lat = 40.5833333, lon =-79.5833333
  2568. The output will be saved in the new file TEMP.DBF.  In this example 
  2569. all records, both matched and unmatched, are transferred.  You can 
  2570. transfer only the matched records to another database by overriding the 
  2571. definition file specifications from the command line.
  2572. C:> geocode /def=demo xlist another /matched
  2573. This time the output will read:
  2574. 64 records geocoded, 64 transferred out of 68.
  2575. and the geocoded records will be stored in the file ANOTHER.DBF.  
  2576. Make changes to the definition file and explore different option 
  2577. combinations.  Some combinations may generate error messages which 
  2578. should be self-explanatory.
  2579. Example Definition File:
  2580. ; demo.def  -  Demonstration Geocode definition
  2581. ;
  2582.  
  2583. ;      lookup     input  [length]
  2584. KEY:    zip        ZIP      5
  2585. key:    state_code state    1    ; avoid non-US 
  2586. ; addresses
  2587.  
  2588. record match:  geomatched ; record match count in this
  2589. ; field
  2590. ;unique:                  ; = 1
  2591. ;matched only:            ; > 0
  2592.                           ; 0 or greater if not 
  2593. ; specified
  2594.  
  2595. overwrite output:         ; Gives error msg if one of 
  2596. ;append output:           ; these is NOT defined and 
  2597. ; output file exists.
  2598.  
  2599. LOOKUP DBF:     ZIPPHONE
  2600. lookup mdx:     zipphone     ; Defaults to dbf name.
  2601. lookup tag:     def_tag    ; Defaults to def_tag.
  2602. lookup exp:     upper(zip)    ; Needed if no mdx exists for 
  2603. ; lookup dbf.
  2604. ;lookup tag:     2nd_tag
  2605. ;lookup exp:     upper(city + state_code)
  2606. ;lookup tag:     third
  2607. ;lookup exp:     county + city
  2608.  
  2609. INPUT DBF:      XLIST         ; File to be geocoded.
  2610. ;input mdx:      xlist
  2611.  
  2612. OUTPUT DBF:     TEMP
  2613. ; Inplace:
  2614.  
  2615. record distance:  dist
  2616. center: 40:35N  79:35w
  2617. ;Max Range: 1000
  2618. ;Min Range: 100
  2619. UNITS:  miles
  2620.  
  2621. first match:
  2622.  
  2623. ; match only PA in field  STATE
  2624. ;skip 15066 in field Zip 2
  2625. Advanced Considerations:
  2626. The database ZIPPHONE.DBF we used in the preceding example may 
  2627. be good for casual geocoding but, as it stands, lacks the control and 
  2628. efficiency those who would do more might desire.  It holds a 
  2629. combination of zipcode and telephone exchange information, over 
  2630. 105,000 records, many of which are duplicated from one point of view or 
  2631. the other.  To make it truly useful and efficient for your operation, you 
  2632. will want to import ZIPPHONE into a database manager such as 
  2633. Microsoft's ACCESS, delete the unneeded fields, remove duplicate and 
  2634. blank key records, and save the database as a dBASE IV image under a 
  2635. different name.
  2636. If, for example, you are going to be working with 3 digit zipcode 
  2637. centroids, you could generate those centroids by removing the telephone 
  2638. data completely and reducing the width of the ZIP field to 3 digits.  
  2639. Remove the duplicate records so that each record is unique.  Under any 
  2640. three digit zipcode there will be a number of different records.  Within 
  2641. ACCESS, you could calculate each 3 digit combination's average lat/lon 
  2642. by database programming or you could export the database to serve as 
  2643. an initial lookup database and, still within ACCESS, create a smaller 
  2644. database with unique three digit zipcodes and null lat/lon fields. Export 
  2645. this second database as your input database and use GEOCODE to 
  2646. find the average location of each record by not using the /FIRST option 
  2647. in the geocoding process.  Your new output database will represent the 
  2648. true centroid of 3-digit zipcodes and could be used as your new lookup 
  2649. table when geocoding future work.  If you are geocoding a large amount 
  2650. of data, a condensed table holding a single record for each matching key 
  2651. is more efficient than averaging over multiple lookup records on the fly 
  2652. for each input record.  In a non-condensed table, the /FIRST option will 
  2653. give misleading results unless all equal-key lat/lon data are duplicates.
  2654.  
  2655. GEOTOENT
  2656. This MAPIT utility converts geocoded dBASE IV files to MAPIT entity 
  2657. files. MAPIT entity files are standard dBASE IV files containing 
  2658. certain field names required by MAPIT to display the entities properly.  
  2659. MAPIT entities stored in dBASE files are point entities: they exist at 
  2660. single points and have no inherent dimensions or extents.  Lines, on the 
  2661. other hand, stored in .mp3 files, have length and consist of many 
  2662. points.  The point entities are figures, stroked text, hidden text, cities, 
  2663. and pcx maps.
  2664. The GEOTOENT Command Line:
  2665. Usage:
  2666.     GEOTOENT [input_file]  [output_file] [/options...]
  2667. where
  2668. input_file
  2669. -
  2670. an optional dBASE IV file holding the 
  2671. records to be converted.  Assumes a .DBF 
  2672. extension.
  2673. output_file
  2674. -
  2675. an optional dBASE IV database name in 
  2676. which the MAPIT entity data will be stored  
  2677. Assumes a .DBF extension.
  2678. options:
  2679. /definition=
  2680. -
  2681. a .DEF file holding definitions which may 
  2682. augment or replace those given here as 
  2683. command line arguments.  Command line 
  2684. arguments take precedence over statements 
  2685. in the definition file.
  2686. /append
  2687. -
  2688. add newly converted data to the end of the 
  2689. output_file.
  2690. /overwrite
  2691. -
  2692. delete any data in an existing output_file 
  2693. before adding the newly converted data.  By 
  2694. default, an error message is issued if the 
  2695. output_file already exists and neither the 
  2696. /append nor the /overwrite option is given.
  2697. /type=
  2698. -
  2699. create this type of MAPIT entity.  Use 
  2700. figure, stroked_text, hidden_text, city, or 
  2701. pcx_map.
  2702. /help
  2703. -
  2704. display a list of legal definition file 
  2705. statements.
  2706. /version
  2707. -
  2708. display program's version.
  2709. /?
  2710. -
  2711. display this output.
  2712. Definition File:
  2713. GEOTOENT's command line arguments are so numerous and complex 
  2714. that you can place some or all of them within a definition file having the 
  2715. extension .DEF.  This file is free format on a line-by-line basis and uses 
  2716. the `;' character as a comment.  Everything to the right of the comment 
  2717. character is ignored.  The order of statements is not important.  Certain 
  2718. combinations are illegal.  Some of the following commands can also be 
  2719. entered as command line arguments.  For instance, APPEND 
  2720. OUTPUT: corresponds to /append.  Selections made at the command 
  2721. line override those made in a definition file allowing you to have a 
  2722. general definition which you can override easily at program invocation.  
  2723. Reference your definition file from the command line with the 
  2724. /definition option as in
  2725.     C:\>  geotoent  /definition=my_def
  2726. Specify the input file:
  2727. INPUT DBF: file_name
  2728.  
  2729. INPUT DBF is the database you want to convert.  In general, it makes 
  2730. no difference if the input file has an index (.MDX file).  The input file 
  2731. must be a geocoded file, i.e. it must contain fields containing latitude 
  2732. and longitude data.
  2733. Specify the output file:
  2734. OUTPUT DBF: file_name
  2735.  
  2736. OVERWRITE OUTPUT:
  2737. ;  overwrite, append, or error msg.
  2738. APPEND OUTPUT:
  2739.  
  2740. ENTITY TYPE: type
  2741. ;  create the output dbf in the 
  2742. specified format choosing from 
  2743. figure, stroked_text, hidden_text, 
  2744. city, or pcx_map.  Defaults to 
  2745. figure if not specified.
  2746. The OUTPUT DBF is a copy of the INPUT DBF augmented to contain 
  2747. those fields necessary to define the selected ENTITY TYPE. The 
  2748. existence of the output database will generate an error message and 
  2749. halt further processing unless you indicate your desire to either 
  2750. OVERWRITE or to APPEND to the output database.
  2751. Modify fields:
  2752. EXCLUDE field
  2753. ; Don't transfer this field.
  2754. RENAME field1  TO  field2
  2755. ; Change the field's name.
  2756. field = fields strings.
  2757. ; Load an output field with data 
  2758. from multiple input fields and 
  2759. strings.  Input field:n limits 
  2760. assignment to the first n 
  2761. characters.
  2762. LOAD field WITH constant
  2763. ; Load a field with a constant.
  2764. LOAD field1 WITH constant IF 
  2765. field2 OP constant
  2766. ; Load a field with a constant if 
  2767. another field matches certain 
  2768. criteria.
  2769. LOAD field1 WITH constant IF 
  2770. field2 OP constant WIDTH number
  2771. ; Load a field with a constant if 
  2772. the first n characters of field2 
  2773. matches certain criteria.
  2774. LOAD field1 WITH constant IF 
  2775. field2 OP constant1 AND OP 
  2776. constant2
  2777. ; Add a second operator and 
  2778. constant.
  2779. LOAD field1 WITH constant IF 
  2780. field2 OP const1 AND OP const2 
  2781. WIDTH number
  2782. ; Two operators with constants 
  2783. and a WIDTH applied to 
  2784. field2.
  2785. EXCLUDE excludes input fields from being replicated in the output 
  2786. database.  RENAME changes the name of an input field in the output 
  2787. database.  The assignment character = specifies that the fields and 
  2788. strings on the right should be concatenated and saved in the field name 
  2789. on the left.  Strings are characters between quotation marks and may 
  2790. include blanks.  Specify a newline character with \n which is converted 
  2791. to the carriage return-line feed sequence for proper display in MAPIT 
  2792. and in dBASE programs.  The contents of fields are transferred by 
  2793. naming the field.  Trailing blanks are eliminated.  You can truncate a 
  2794. field by appending the : character followed by a maximum width.  For 
  2795. example:
  2796.     hiddentext = "Office location:\n" city  ", " State "  " ZIP:5
  2797. LOAD loads a field with constant text.  The text may not have 
  2798. imbedded blanks.  Copying the data can be conditional upon the value 
  2799. of a second field's meeting certain criteria specified by one of the 
  2800. following operators: =, <, <=, >, >=, <>.  For example:
  2801.     LOAD labelcolor WITH 4 IF zip >= 15000 AND < 16000 WIDTH 5
  2802. Comparisons of numeric data are done by first converting the fields to 
  2803. floating point representation.  Character fields are compared lexically.  
  2804. The preceding example is somewhat confusing because it is a lexical 
  2805. (character-by-character) comparison of what might appear to be 
  2806. numeric data but isn't.  GEOTOENT issues a warning message when 
  2807. numeric fields are truncated by the WIDTH operator. You may not get 
  2808. what you expect depending upon how the numeric data is internally 
  2809. held in the field.
  2810. Example Output:
  2811. GEOTOENT will product the following output when run against the 
  2812. TEMP.DBF data file and TEST4.DEF definition file found on the 
  2813. MAPIT  CD-ROM under the \MAPIT20\EXAMPLES\GEOTOENT 
  2814. directory
  2815. C:> geotoent /def=test4
  2816.  
  2817. Creating Figures Output.
  2818. Excluding field GEOMATCHED
  2819. Renaming field DIST to DISTANCE
  2820.  
  2821. Creating database index "OUT"
  2822.  
  2823. Transfering data...
  2824.  
  2825. Re-indexing output database.
  2826. 68 records transferred. 
  2827.  
  2828. This HP-GL/2 plot was created by running MYMAP.BAT  (See MAPIT 
  2829. BATCH FILES) from a directory on the C: drive with local scantable 
  2830. C:SCANTABL altered to include an Active record referencing figure 
  2831. entity (E_TYPE "F") database C:OUT.DBF.  Note that the geocoded 
  2832. circles are proportional in size to their distance from Pittsburgh and are 
  2833. colored in the MAPIT original based on distance.  The figure labels 
  2834. contain text from the distance field.
  2835. Example Definition File: 
  2836. ;  test4.def -  Example GEOTOENT definition file.
  2837.  
  2838. INPUT DBF:  temp
  2839. OUTPUT DBF: out
  2840.  
  2841. OVERWRITE OUTPUT:
  2842.  
  2843. ENTITY TYPE: figure
  2844.  
  2845. EXCLUDE geomatched
  2846. RENAME dist to distance
  2847.  
  2848. label_text = dist
  2849.  
  2850. LOAD fig_scale WITH 1 IF dist <= 10
  2851. LOAD fig_scale WITH 2 IF dist > 10 AND >= 50
  2852. LOAD fig_scale WITH 3 IF dist > 50 AND >= 100
  2853. LOAD fig_scale WITH 4 IF dist > 100 AND >= 200
  2854. LOAD fig_scale WITH 5 IF dist > 200 AND >= 300
  2855. LOAD fig_scale WITH 6 IF dist > 300 AND >= 500
  2856. LOAD fig_scale WITH 7 IF dist > 500 AND >= 800
  2857. LOAD fig_scale WITH 8 IF dist > 800 AND >= 1200
  2858. LOAD fig_scale WITH 9 IF dist > 1200 AND >= 2000
  2859. LOAD fig_scale WITH 10 IF dist > 2000 
  2860.  
  2861. LOAD labelcolor WITH 3 IF dist > 200
  2862. LOAD labelcolor WITH 5 IF dist > 500
  2863. LOAD labelcolor WITH 4 IF dist >
  2864.  2000
  2865.  
  2866. ;LOAD fig_name WITH CIRCLE IF zip = 15 WIDTH 2
  2867. LOAD fig_name WITH CIRCLE 
  2868.  
  2869. HIDDENTEXT =   CITY   "\n"STATE ",  " ZIP:5
  2870. Advanced Considerations:
  2871. The primary purpose of GEOTOENT is to add and initialize fields from 
  2872. an existing dBASE file and produce a new dbf in one of MAPIT's entity 
  2873. formats.  When you reference this entity dbf by adding it to the scan 
  2874. table dbf (see FILES/Add Scan Table Record or FILES/Edit DBF), 
  2875. MAPIT  will display your data the next time it displays data (scans the 
  2876. databases) via the ZOOM/Redisplay or ZOOM/Overwrite command.  
  2877. You could, by hand with a database manager such as ACCESS, do the 
  2878. very things this program does. The LOAD, RENAME, EXCLUDE, and 
  2879. assign functions could all be accomplished in your database manager.    
  2880. However the advantages of GEOTOENT are operational ease and 
  2881. efficiency. If you have complicated functions to perform, you may have 
  2882. to fall back on ACCESS or its equivalent.  But GEOTOENT will place 
  2883. you far along the path toward accomplishing your goal.
  2884. You may have to experiment to work out the details of complicated 
  2885. queries.  GEOTOENT issues warning and error messages at run time 
  2886. if you make mistakes and may refuse to transfer data.  A few general 
  2887. rules will help.  Field names referenced as the source of data refer to 
  2888. fields in the input file.  Although a field may be EXCLUDED (not 
  2889. transferred) or RENAMED, its data is available for use in LOAD or 
  2890. assignment statements at run time. Destination fields, however, must 
  2891. exist in the output dbf.
  2892. You can truncate data in a field by assigning it to itself with a width 
  2893. parameter.  The data is truncated although the field is not shortened.
  2894.     zip = zip:5
  2895. MAPIT entities require the existence of the fields LATITUDE and 
  2896. LONGITUDE.  If your source dbf contained the data stored in the fields 
  2897. LAT and LON, you would fulfill MAPIT's requirements by renaming 
  2898. the fields.
  2899. RENAME lat TO latitude
  2900. RENAME lon TO longitude
  2901.  
  2902. GEOTOMP1
  2903. This MAPIT utility converts geocoded dBASE IV files to MAPIT .mp1 
  2904. files, ASCII files containing multiple lines of latitude/longitude pairs.  
  2905. The MAPIT utility MP1TOMP3, in turn, transforms these 
  2906. latitude/longitude pairs into MAPIT .mp3 line entities.  Depending 
  2907. upon your request, the lines can describe circles, squares, and 
  2908. rectangles around points in your original dBASE file, connect points 
  2909. with straight lines and great circle arcs, and connect other points to the 
  2910. original points by straight lines and great circles.
  2911. The GEOTOMP1 Command Line:
  2912. Usage:
  2913.     GEOTOMP1 [input_file]  [output_file] [/options...]
  2914. where
  2915. input_file
  2916. -
  2917. an optional dBASE IV file holding the 
  2918. records to be converted.  Assumes a .DBF 
  2919. extension.
  2920. output_file
  2921. -
  2922. an optional file name in which MAPIT line 
  2923. data will be stored as ASCII lat/lon pairs. 
  2924. Assumes a .MP1 extension.
  2925. options:
  2926. /definition=
  2927. -
  2928. a .DEF file holding definitions which may 
  2929. augment those given here as command line 
  2930. arguments.  Command line arguments take 
  2931. precedence over statements in the definition 
  2932. file.
  2933. /append
  2934. -
  2935. add newly converted data to the end of the 
  2936. output_file.
  2937. /overwrite
  2938. -
  2939. delete any data in an existing output_file 
  2940. before adding the newly converted data.  By 
  2941. default, an error message is issued if the 
  2942. output_file already exists and neither the 
  2943. /append nor the /overwrite option is given.
  2944. / location=
  2945. -
  2946. the external location from which to draw 
  2947. straight lines or great circles to individual 
  2948. records.  Expects the standard free-format 
  2949. lat/lon string. No space allowed between 
  2950. latitude and longitude unless the string is 
  2951. delimited by quotation marks.  e.g. 
  2952. /center=40:30.84N79:36.94W
  2953. /help
  2954. -
  2955. display a list of legal definition file 
  2956. statements.
  2957. /version
  2958. -
  2959. display program's version.
  2960. /?
  2961. -
  2962. display this output.
  2963. Definition File:
  2964. GEOTOMP1's command line arguments are so numerous and complex 
  2965. that you can place some or all of them within a definition file having the 
  2966. extension .DEF.  This file is free format on a line-by-line basis and uses 
  2967. the `;' character as a comment.  Everything to the right of the comment 
  2968. character is ignored.  The order of statements is not important.  Certain 
  2969. combinations are illegal.  Some of the following commands can also be 
  2970. entered as command line arguments.  For instance, APPEND 
  2971. OUTPUT corresponds to /append.  Selections made at the command 
  2972. line override those made in a definition file allowing you to have a 
  2973. general definition which you can override easily at program invocation.  
  2974. Reference your definition file from the command line with the 
  2975. /definition option as in
  2976.     C:\>  GEOTOMP1  /definition=my_def
  2977. Specify the input file:
  2978. INPUT DBF: file_name
  2979.  
  2980. INPUT DBF is the database from which you want to generate lines.  In 
  2981. general, it makes no difference if the input file has an index (.MDX file).  
  2982. The input file must be a geocoded file, i.e. it must contain fields 
  2983. containing latitude and longitude data.
  2984. Specify the output file:
  2985. OUTPUT FILE: file_name
  2986.  
  2987. OVERWRITE OUTPUT
  2988. ;  overwrite, append, or error msg.
  2989. APPEND OUTPUT
  2990.  
  2991. The OUTPUT FILE contains a series of line definitions generated from 
  2992. specifications in the DEFINITION FILE.  If an OUTPUT FILE of the 
  2993. same name already exists, you can choose to OVERWRITE OUTPUT, 
  2994. which deletes it, APPEND OUTPUT, which adds the new data to its 
  2995. end, or have processing cease with an error message, the default action, 
  2996. which protects the original file contents.
  2997. Specify fields and locations:
  2998. LATITUDE:  field_name
  2999. ; Name of the field holding 
  3000. the record's latitude.  
  3001. Defaults to "LATITUDE".
  3002. LONGITUDE:  field_name
  3003. ; Name of the field holding 
  3004. the record's longitude.  
  3005. Defaults to "LONGITUDE".
  3006. INTERNAL LATITUDE:  field_name
  3007. ; Field containing the 
  3008. latitude of an internal 
  3009. location.
  3010. INTERNAL LONGITUDE:  
  3011. field_name
  3012. ; Field containing the 
  3013. longitude of an internal 
  3014. location.
  3015. EXTERNAL LOCATION:  
  3016. lat/lon_string
  3017. ; An external loc. as a 
  3018. standard free-format lat/lon 
  3019. string.  May contain a blank 
  3020. between lat lon.  e.g. 
  3021. 40:30.84N 79:36.94W
  3022. LATITUDE: and LONGITUDE: specify the field names holding the 
  3023. geocoded latitude and longitude data for each record.  Their default 
  3024. values are "LATITUDE" and "LONGITUDE" respectively.  INTERNAL 
  3025. LATITUDE: and INTERNAL LONGITUDE: specify the field names of 
  3026. internal locations for each record.  The internal location can be used for 
  3027. drawing a line to the record's geocoded location.  Similarly the 
  3028. EXTERNAL LOCATION: specifies a single location from which lines 
  3029. can be drawn to each record's geocoded location.  You can specify or 
  3030. override an EXTERNAL LOCATION: statement with the /location= 
  3031. command line argument.
  3032. Specify marker instructions:
  3033. COMMENT:  fields_names and 
  3034. quoted_strings
  3035. ; Precede a record in the 
  3036. OUTPUT FILE with a 
  3037. comment consisting of quoted 
  3038. strings and data from the 
  3039. named fields.
  3040. CIRCLE  radius_value  [if_clause]
  3041. ; Output a CIRCLE of a given 
  3042. radius if certain optional 
  3043. conditions are met.
  3044. SQUARE  width_value  [if_clause]
  3045. ; Output a SQUARE of a 
  3046. given width if certain optional 
  3047. conditions are met.
  3048. RECTANGLE WIDTH width_ value  
  3049. [if_clause]
  3050. ; Output a RECTANGLE of a 
  3051. given width if certain optional 
  3052. conditions are met.
  3053. RECTANGLE HEIGHT height_ 
  3054. value  [if_clause]
  3055. ; Output a SQUARE of a 
  3056. given height if certain 
  3057. optional conditions are met.
  3058. PLUS  width_ value  [if_clause]
  3059. ; Output a PLUS `+' character 
  3060. of a given width if certain 
  3061. optional conditions are met.
  3062. X  width_ value  [if_clause]
  3063. ; Output an `X' marker of a 
  3064. given width if certain optional 
  3065. conditions are met
  3066. COMMENT: specifies that the following fields and strings be 
  3067. concatenated and written as a comment to the OUTPUT FILE.  
  3068. Comments in .mp1 files are any text following the `;' character through 
  3069. the end of the line.  Strings are characters between quotation marks 
  3070. and may include blanks and \n newline characters which continue the 
  3071. comment to the next line..  You can truncate a field by appending the `:' 
  3072. character followed by a maximum width.  For example:
  3073.     COMMENT: CITY  ", " STATE "  " ZIP_CODE:5 ",\nUnited States"
  3074. The CIRCLE and other marker statements cause those markers to be 
  3075. written to the OUTPUT FILE as sequences of straight line segments 
  3076. described by latitude/longitude pairs.  The size of those markers is 
  3077. defined by a value followed by an optional unit.  Note that the circle is 
  3078. defined in terms of its RADIUS while the other markers, by their 
  3079. WIDTH or HEIGHT dimensions.  Both a RECTANGLE WIDTH and a 
  3080. RECTANGLE HEIGHT statements are needed to define each 
  3081. RECTANGLE.
  3082. Specify line instructions:
  3083. STRAIGHT LINE INTERNAL 
  3084. [if_clause]
  3085. ; Draw a straight line between a 
  3086. location specified within a 
  3087. record and the record's 
  3088. geocoded location.
  3089. STRAIGHT LINE EXTERNAL 
  3090. [if_clause]
  3091. ; Draw straight lines between a 
  3092. single location specified outside 
  3093. a record and all records' 
  3094. geocoded locations.
  3095. STRAIGHT LINE CONNECTOR 
  3096. [if_clause]
  3097. ; Draw a straight line between 
  3098. each record's geocoded location 
  3099. and that of the following record.
  3100. GREAT CIRCLE INTERNAL 
  3101. [if_clause]
  3102. ; Draw a great circle between a 
  3103. location specified within a 
  3104. record and the record's 
  3105. geocoded location.
  3106. GREAT CIRCLE EXTERNAL 
  3107. [if_clause]
  3108. ; Draw great circles between a 
  3109. single location specified outside 
  3110. a record and all records' 
  3111. geocoded locations.
  3112. GREAT CIRCLE CONNECTOR 
  3113. [if_clause]
  3114. ; Draw a great circle between 
  3115. each record's geocoded location 
  3116. and that of the following record.
  3117. These optionally conditional expressions draw either straight lines or 
  3118. great circles connecting the geocoded locations of records, connecting an 
  3119. internal location within each record to its geocoded location, or 
  3120. connecting a single externally-specified location to the geocoded location 
  3121. of each record.
  3122. Subdefinitions:
  3123. value
  3124. numeric_field_name,  number
  3125. unit
  3126. miles,  nmiles,  kilometers,  km,  meters,  yards,  feet,  ft
  3127. if_clause
  3128. IF field_name OP constant [AND OP constant] [WIDTH 
  3129. number]
  3130. OP
  3131. =,  <,  <=,  >,  >=,  <>
  3132. Outputting data can be dependent on an optional if_clause and the 
  3133. value in a field's meeting certain criteria as specified above.  For 
  3134. example:
  3135.     CIRCLE 5 miles IF zip >= 15000 AND < 16000 WIDTH 5
  3136. Comparisons of numeric data are done by first converting the fields to 
  3137. floating point representation.  Character fields are compared lexically.  
  3138. The preceding example is somewhat confusing because it is a lexical 
  3139. (character-by-character) comparison of what might appear to be 
  3140. numeric data but isn't.  GEOTOMP1 issues a warning message when 
  3141. numeric fields are truncated by the WIDTH operator. You may not get 
  3142. what you expect depending upon how the numeric data is internally 
  3143. held in the field.
  3144. Example Output:
  3145. GEOTOMP1 will product the following output when run against the 
  3146. CAPITALS.DBF data file and TEST1.DEF definition file found on the 
  3147. MAPIT  CD-ROM under the \MAPIT20\EXAMPLES\GEOTOMP1 
  3148. directory.  Output to the screen:
  3149. C:> geotomp1 /def=test1
  3150.  
  3151. Overwriting
  3152. Transfering data...
  3153. 412 records processed out of 1071.
  3154.  
  3155. C:>  mp1tomp3 out /color=4 /over
  3156. C:>  mymap out
  3157.  
  3158. Test1 Output: 
  3159. Great Circles from Washington DC to National Capitals
  3160. Straight Lines from National Capitals to State Capitals
  3161. Squares and Circles around National and State Capitals
  3162. Test1 Output:  Detail of Brazil
  3163. Test2 Output of Cards:  
  3164. Straight Line Connectors between Records
  3165. 25 mile Squares
  3166. Test3 Output of Cards:  
  3167. Great Circles from External Point to Nodes
  3168. 25 mile Squares
  3169.  
  3170. Test1 output to the file OUT.MP1:
  3171. ; Washington, District of Columbia, United 
  3172. States of America
  3173.  39.6191469  -76.0965859
  3174.  39.6191469  -77.9767541
  3175.  38.1708531  -77.9577757
  3176.  38.1708531  -76.1155643
  3177.  39.6191469  -76.0965859
  3178.  
  3179.  38.8950000  -77.0366700
  3180.  38.8950000  -77.0366700
  3181.  
  3182. ; Taipei, , Taiwan
  3183.  25.7680369  122.3013261
  3184.  25.7680369  120.6931139
  3185.  24.3197431  120.7025557
  3186.  24.3197431  122.2918843
  3187.  25.7680369  122.3013261
  3188.  
  3189.  25.4059635  121.4972200
  3190.     . 
  3191.  25.4059635  121.4972200
  3192.  
  3193.  38.8950000  -77.0366700
  3194.     .
  3195.  25.0438900  121.4972200
  3196.  
  3197.  25.0438900  121.4972200
  3198.  25.0438900  121.4972200
  3199.  
  3200. ; Seoul, Soul-t'ukpyolsi, Korea, Republic of
  3201.  38.2872069  127.8995204
  3202.  38.2872069  126.0543596
  3203.  36.8389131  126.0721232
  3204.  36.8389131  127.8817568
  3205.  38.2872069  127.8995204
  3206.  
  3207.     etc.
  3208. Example Definition File: 
  3209.  
  3210. ;  test1.def   -  examples of geotomp1 options.
  3211.  
  3212. ; Draw Great Circles from Washington DC to national capitals.
  3213. ; Draw straight lines from national capitals to state capitals.
  3214. ; Draw 100 mile width squares around national capitals.
  3215. ; Draw 25 mile radius circles around state capitals.
  3216.  
  3217. input dbf: capitals
  3218. output file: out
  3219.  
  3220. overwrite output
  3221.  
  3222. Square 100  IF natnl_cap = T
  3223. CIRCLE 25 miles IF state_cap = t
  3224.  
  3225.  GREAT CIRCLE EXTERNAL IF natnl_cap = t
  3226. STRAIGHT LINE INTERNAL IF state_cap = t
  3227.  
  3228. EXTERNAL LOCATION: 38.895 -77.03667     ; Loc of Washington, DC
  3229. INTERNAL LATITUDE: lat      ; Natl capital loc assigned beforehand
  3230. INTERNAL LONGITUDE: lon  ; in database.
  3231.  
  3232. COMMENT:   city_name   ", "PROVINCE ", " country
  3233. Advanced Considerations:
  3234. GEOTOMP1 differs from GEOTOENT in that the former converts 
  3235. discrete points recorded in dBASE files to series of line data depicting 
  3236. markers around said points or the connection of these points with other 
  3237. locations.  GEOTOENT converts dBASE data to MAPIT dbf entities.  
  3238. MAPIT dbf entities can, in general, be either map or screen relative.  
  3239. .MP1 line entities are of fixed size and are, therefore, always map 
  3240. relative.  You must specify before hand the radius of a circle in miles or 
  3241. kilometers, and it will always be such.
  3242. GEOTOMP1 allows the user to attach multiple lines and  markers to 
  3243. each point in a single pass.  You could draw a circle and square around 
  3244. each point and draw a straight lines and great circles from internal or 
  3245. external points while connecting consecutive data points with straight 
  3246. lines and great circles.  There is, however, beauty in simplicity.
  3247.  
  3248. GPS
  3249. Allison Software's MAPIT GPS Utilities Package is a set of IBM PC-
  3250. compatible programs designed to capture NMEA 0183 data from a 
  3251. Global Positioning System receiver transforming it into mapping 
  3252. coordinate data and saving it to computer disk for display and use by 
  3253. MAPIT.  The Global Positioning System (GPS) consists of 24 satellites 
  3254. maintained by the US Department of Defense.  Signals transmitted 
  3255. from these satellites are encoded with precise location and timing 
  3256. information which enable users with GPS receivers to determine their 
  3257. location anywhere in the world with 100 meter accuracy. 
  3258. GPS Overview:
  3259. MAPIT GPS supports the capture of real-time positioning data from a 
  3260. GPS receiver's  NMEA output cable through a computer's serial COM 
  3261. port.  GPS converts the data from its original NMEA 0183 sentence 
  3262. format to a series of latitude/longitude/time fixes which the user can 
  3263. view in real-time on the screen, can be sent to an intermediate dB file 
  3264. for concurrent access by MAPIT, and saved in a log file.  GPS is a 
  3265. Windows program and must be installed under Microsoft Windows 3.1 
  3266. or Windows 95  on an IBM PC-compatible computer.  It expects GPS 
  3267. output in the form of NMEA 0183 Version 2 sentences supplied at 4800 
  3268. baud to serial COM port 1 - 4.  (See Hardware Connections for port 
  3269. pin configuration.)
  3270. GPS notifies the user when the data signal is acquired, dropped, or 
  3271. missing; optionally logs incoming data to the display or to an ASCII log 
  3272. file; and parses NMEA sentences collecting the results as fixes for 
  3273. display, logging, and updating of the first record of a dB IV-compliant 
  3274. data base for real-time access by MAPIT.  Additionally, supported and 
  3275. unsupported NMEA sentences can be displayed and logged and the 
  3276. computer's system clock reset to agree with the time supplied by the 
  3277. GPS signal.  GPS updates the file system's FAT (File Access Table) 
  3278. about once a minute to reduce data loss due to computer battery failure 
  3279. or system crash.  
  3280. GPS continues to operate when minimized to an icon.
  3281.  
  3282. GPS Installation:
  3283. Being a Windows program, you must install GPS from within Windows 
  3284. so that its icon appears in the program group of your choice.  
  3285. From within Windows 3.1 first select the program group you want the 
  3286. GPS icon to reside in by clicking anywhere in it.  When selected, the 
  3287. program group's top banner is darkened.  From the Program Manager, 
  3288. click on File and then select New from the menu.  The New Program 
  3289. Object window appears.  Select Program Item and OK.
  3290. The Program Item Properties dialog box appears. Enter "MAPIT GPS" 
  3291. as the Description, "gps" as the Command Line, and the path where 
  3292. GPS.EXE resides as the Working Directory.  (Note CB5.DLL must also 
  3293. reside in the working directory with GPS.EXE or in the 
  3294. \WINDOWS\SYSTEM subdirectory.)  Click OK and GPS's icon will be 
  3295. installed in your chosen program group.  Execute GPS by double 
  3296. clicking this icon.
  3297. GPS's Menus:
  3298.  
  3299. File
  3300. Accesses files containing settings.
  3301. DBF
  3302. Accesses database files.
  3303. Log
  3304. Accesses log files.
  3305. Transfers
  3306. Controls GPS input and logs output information.
  3307. Settings
  3308. Controls data port, fix spacing, and smoothing.
  3309. Help
  3310. Displays About screen.
  3311. File:
  3312. The files accessed by this menu record or restore the GPS DBF, Log, 
  3313. Transfers, and Settings options.  Opening an existing file recreates the 
  3314. state GPS was in when the File was created.  Files have the default 
  3315. extension .GPS.
  3316. New - Resets the program settings state back to conditions existing at 
  3317. program start.
  3318. Open - Opens an existing program settings state file and loads the 
  3319. settings into the program, closes any old DBF or Log files, and opens 
  3320. requested ones. 
  3321. Save - Saves the program settings state in an existing file.
  3322. Save As - Saves the program settings state in a new file.
  3323. Exit - Terminates the GPS program and closes all files.
  3324. DBF:
  3325. The first record of the database file opened by this menu is kept up-to-
  3326. date with the current fix generated by GPS when the system is active.  
  3327. Files have the default extension .DBF. The name of an active dB file is 
  3328. listed in the menu bar.
  3329. Open - Opens an existing DBF for continual update with the current 
  3330. fix.
  3331. Save As - Creates a new DBF and opens it for continual update with 
  3332. the current fix.
  3333. Close - Closes the currently open DBF.
  3334. Log:
  3335. The files accessed by this menu hold information displayed on the main 
  3336. window during program execution.  Files have the default extension 
  3337. .LOG. The name of an active Log file is listed in the menu bar.
  3338. Open - Opens an existing Log for output of newly displayed 
  3339. information.  The information is appended at the file's end.
  3340. Save As - Creates a new Log and opens it for output of newly displayed 
  3341. information. If you force output to an existing file, the file is first 
  3342. truncated
  3343. Close - Closes the currently open Log.
  3344. Transfers:
  3345. Controls input from the GPS unit, the display of information on the 
  3346. screen (and to the Log file when one is open), and the synchronization of 
  3347. the computer's clock with the time encoded in the received signal.
  3348. Receive GPS - Accepts GPS input data from the selected serial com 
  3349. port when checked.  Logs an error message to the display (and optional 
  3350. Log file) if data stops for a ten second period.  (Expected nominal data 
  3351. rate is one fix consisting of one or more NMEA sentences no more than 
  3352. once a second.)
  3353. GPS input - Outputs raw data to the display (and optional Log file) 
  3354. when checked. The data is compatible with .NME format and can 
  3355. therefore be used as input to NMETOMP1.
  3356. Position output - Outputs processed fix data to the display (and 
  3357. optional Log file) when checked.  A fix is output after the first sentence 
  3358. of the next fix is received.  Fix output is in a format compatable with 
  3359. .MP1 format and therefore can be used as input to MP1TOMP3.
  3360. Supported - Outputs supported (recognized and therefore translated) 
  3361. raw NMEA 0183 data sentences to the display (and optional Log file) 
  3362. when checked.
  3363. Unsupported - Outputs unsupported (unrecognized and therefore 
  3364. untranslated) raw NMEA 0183 data sentences to the display (and 
  3365. optional Log file) when checked.
  3366. Errors - Outputs the raw data of any recognized sentences which are 
  3367. obviously in error to the display (and optional Log file) when checked.  
  3368. This condition most commonly happens at program startup when only 
  3369. the last part of the first sentence is received.
  3370. Reset Clock - When checked, updates the computer's system clock to 
  3371. reflect the minutes and seconds as they're delivered real-time from the 
  3372. GPS hardware.  The hour is not changed in order to protect the local 
  3373. time offset from the Universal Time delivered by the GPS except when 
  3374. the corrected minutes advance or retreat over the hour mark.  Even 
  3375. that exception is excepted at the start of a new day.  (Time corrections 
  3376. are not applied near midnight to avoid the necessity of changing the 
  3377. computer's calendar day and possibly year.)
  3378. Time corrections are applied only when the computer's minutes and 
  3379. seconds are within 10 minutes of the GPS's UT.  A displayed message 
  3380. indicates the difference between these two times and whether the 
  3381. computer's clock has been reset.  The user must reset the computer 
  3382. manually with the TIME command to the approximate time if the time 
  3383. difference is too great for automatic update.  Apparent random delays 
  3384. on some GPS units between receiving a signal, processing it, and 
  3385. downloading it through the NMEA port give rise to reset times which 
  3386. can fluctuate from reset to reset by as much as several seconds making 
  3387. a precisely set system clock impossible to achieve.  When Reset Clock is 
  3388. checked, the reset is applied once but only after a new fix appears 
  3389. within two seconds of the last one, an attempt to insure that only 
  3390. current readings are used.  By clicking this option off and on, you can 
  3391. force another reset of the time.  Subsequent resets will display a time 
  3392. difference demonstrating the limits impossed by the fluctuations of your 
  3393. system's aforementioned delay.
  3394. Settings:
  3395. Controls COM port, pruning, and averaging options.
  3396.  
  3397. COM Port - Selects one of the computer's serial COM ports at which to 
  3398. expect data.  A newly-chosen port doesn't become effective until the 
  3399. next time Receive GPS is set under Transfers.  (i.e. Already in-progress 
  3400. communications are not terminated by choosing a new port.)  A 
  3401. message indicates if the chosen port is already allocated or isn't 
  3402. supported by the underlying hardware.  Data is fully buffered and 
  3403. should  not suffer overrun under normal program execution.
  3404. Prune - Indicates whether duplicate fixes are output and exactly what 
  3405. a duplicate fix is.  By default all fixes differing in time are output 
  3406. independent of their spatial displacements from each other.  By 
  3407. checking the Enable Pruning box, you invoke GPS's simple pruning 
  3408. algorithm which enforces a minimum separation between adjacent fixes 
  3409. for them to be considered non-duplicates.  The Minimum Point Spacing 
  3410. controls the value of this minimum separation.  The default 0 value 
  3411. implies no effective pruning.  By increasing the minimum separation to 
  3412. a positive value, you change the definition of what a duplicate point is 
  3413. and therefore how close together fixes can lie and yet be displayed.  
  3414. There are a variety of units you can choose ranging from feet to meters 
  3415. to nautical miles.  You must choose OK before any changes become 
  3416. permanent and therefore effective.
  3417. To illustrate fix pruning, set your GPS receiver in a stationary location 
  3418. and Enable Pruning with a 0 Minimum Point Spacing.  Because of the 
  3419. Selective Availability randomization applied by Department of Defense 
  3420. to the GPS signal, a number of slightly different fixes will be displayed. 
  3421. (Turn on Position output to monitor the output.)  Selecting a Minimum 
  3422. Point Spacing of 35 feet will drastically reduce the number of fixes 
  3423. generated in any given time period.  The DOD claims that GPS fixes 
  3424. will fall within 100 meters of the actual location 95% of the time.
  3425. Average - Averages the last GPS location with the current GPS location 
  3426. to produce the current fix when this option is checked.  This produces a 
  3427. somewhat smoother track when not pruning but when examining the 
  3428. track near the limits of its accuracy.
  3429. Help:
  3430. Displays About Gps.
  3431.  
  3432. About Gps... - Displays program version number, copyright, and 
  3433. author information.
  3434.  
  3435. Sample Output:
  3436. This sample session includes
  3437.  
  3438. Log/Save as
  3439. opening a log file
  3440. Transfers/GPS input
  3441. enables display of raw GPS data
  3442. Transfers/Position output
  3443. enables display of calculated positions
  3444. Transfers/Receive GPS
  3445. turns on input data from selected COM 
  3446. port
  3447. At this point NMEA sentences from the GPS are displayed on the 
  3448. screen as they are received.  The first in a series of five output by this 
  3449. unit (a Magellan Meridian) is $GPGLL.  Note that after the next fix is 
  3450. begun (marked by the second $GPGLL), the first fix is output.  After 
  3451. several fixes, the session was terminated.
  3452.  
  3453. Transfers/Receive GPS
  3454. toggles off input
  3455. Log/Close
  3456. closes the log file
  3457. A more typical example might include only logging locations to a file.  In 
  3458. this case the signal was weak and transmission stopped for a minute or 
  3459. two before resuming.  (This data was taken at a stationary location but 
  3460. with a loose antenna connection resulting in widely-fluctuating fixes 
  3461. and high indicated speeds.)
  3462. See \MAPIT20\EXAMPLES\GPS on your CD-ROM for other data 
  3463. examples and NMETOMP1 below for examples of data reduction.
  3464. dB File Format:
  3465. The dB file created or opened by GPS must contain the following 
  3466. numeric fields.  Lengths are those assigned during a GPS create.
  3467.  
  3468. Name
  3469. Type
  3470. Example
  3471. Meaning
  3472. NAME
  3473. C 20
  3474. "GPS"
  3475. Name record 1 "GPS".
  3476. LATITUDE
  3477. N 10.6
  3478. -90.000000
  3479. latitude, decimal degrees, neg. 
  3480. = south
  3481. LONGITUDE
  3482. N 11.6
  3483. -180.000000
  3484. longitude, decimal degrees, 
  3485. neg. = west
  3486. ALTITUDE
  3487. N 6.0
  3488. 999999
  3489. altitude in meters
  3490. TIME
  3491. N 11
  3492. Any positive 
  3493. long integer.
  3494. Date/Time of fix in seconds 
  3495. since Jan 1, 1970.  (UTC)
  3496. SPEED
  3497. N 5.1
  3498. 999.0
  3499. kilometers/hour
  3500. HEADING
  3501. N 5.1
  3502. 359.0
  3503. degrees true from north
  3504. COLOR
  3505. N 6.0
  3506. -1
  3507. -1 = none specified, pos = 
  3508. color number
  3509. ACTIVE
  3510. L 1
  3511. "T"
  3512. MAPIT ignores if not active.
  3513. Error:
  3514. GPS generates errors of two types: those arising from incorrect or 
  3515. unexpected data in otherwise proper NMEA 0183 sentences and those 
  3516. caused by data overruns in your PC's com port.  The latter, if they 
  3517. happen at all, will be flagged by the message
  3518.     Read error n on Com Port m.
  3519. where
  3520.     n indicates an error number and m a port number (1 - 4)
  3521.  
  3522. 1
  3523. Receiving queue overflow.  No room in the input queue.
  3524. 2
  3525. A character was not read from the hardware before the next 
  3526. character arrived and was, therefore, lost.
  3527. At this writing, only error n = 2 has been noted under Windows 3.1, and 
  3528. then only on slower machines.  Reducing the size of the GPS window or 
  3529. reducing it to an icon will reduce the amount of material to be 
  3530. redisplayed for each new position and will positively impact portables 
  3531. with slow screen I/O.
  3532. Precision versus Accuracy:
  3533. The old conundrum of precision versus accuracy raises its confusing 
  3534. head again in the case of MAPIT-displayed GPS data.  MAPIT is able 
  3535. to store points within approximately 100 feet of a location.  In other 
  3536. words, a point whose location should be at x may be as much as 100 feet 
  3537. from x in any direction.  GPS has the inherent capability of locating 
  3538. points within approximately 50 feet of their actual position.  In 
  3539. deference to national security, however, the Department of Defense 
  3540. applies a randomizing signal called Selective Availability (SA) to the 
  3541. GPS system which decreases its accuracy to within plus or minus 300 
  3542. feet 95% of the time.  On the other hand, GPS signals, because of their 
  3543. precision, appear to be very accurate.  The Meridian's GPGLL 
  3544. latitude/longitude output with 0.001 minute precision incorrectly 
  3545. implies fixes accurate to six feet!  Plotting this data on the MAPIT 
  3546. world of 100 foot squares is like trying to view super VGA data on an 
  3547. old CGA display.  But one is quickly reminded that the data's apparent 
  3548. 6 foot accuracy is meaningless when the original reading is 
  3549. superimposed on a second taken some time later.  The two readings 
  3550. from the same location may be as much as 600 feet apart!  It is 
  3551. important to view all GPS data with a 300 foot halo of uncertainty 
  3552. around it.
  3553. There are, however, methods of obtaining more accurate GPS fixes.  In 
  3554. what might appear to be an internal turf war, the US Coast Guard is 
  3555. establishing a series of transmitter sites along the coast broadcasting 
  3556. correction signals which, when applied to differential GPS receivers, 
  3557. more than compensate for the DOD induced SA, a great boon to boat 
  3558. owners!  Similarly, surveying GPS units use locally generated 
  3559. correction signals transmitted from a known point to achieve truly 
  3560. remarkable accuracy within a limited area.
  3561. Hardware Connections:
  3562. Serial input to your computer is commonly through a 9 pin male 
  3563. connector with the following pin connections:
  3564.  
  3565. pin
  3566. I/O
  3567.  
  3568.  
  3569. 1
  3570. I
  3571. DCD
  3572. Data Carrier Detect
  3573. 2
  3574. I
  3575. SIN
  3576. Serial Input
  3577. 3
  3578. O
  3579. SOUT
  3580. Serial Output
  3581. 4
  3582. O
  3583. DTR
  3584. Data Terminal Ready
  3585. 5
  3586. N/A
  3587. GND
  3588. Signal Ground
  3589. 6
  3590. I
  3591. DSR
  3592. Data Set Ready
  3593. 7
  3594. O
  3595. RTS
  3596. Request to Send
  3597. 8
  3598. I
  3599. CTS
  3600. Clear to Send
  3601. 9
  3602. I
  3603. RI
  3604. Ring Indicator
  3605. NMEA +
  3606. 2
  3607.  
  3608. NMEA -
  3609. 5
  3610.  
  3611. 7
  3612. 8
  3613. RTS - CTS  (optional)
  3614. 6
  3615. 4
  3616. DSR - DTR  (optional)
  3617. If your GPS's NMEA 0183 cable does not come supplied with a 
  3618. connector, you can wire your own 9 pin female connector.  (CTS and 
  3619. DTR needed to be asserted for your computer to accept data in an 
  3620. earlier non-Windows program.  The jumpered pins indicated below 
  3621. aren't needed for the Windows GPS.)
  3622.  
  3623.  Supported NMEA 0183 Version 2.00 Sentences:
  3624. GPS currently supports the following NMEA sentences:
  3625.  
  3626. GLL
  3627. *
  3628. Geographic Position - Latitude/Longitude
  3629. latitude, longitude, time
  3630. GGA
  3631. *
  3632. Global Positioning System Fix Data
  3633. latitude, longitude, time, number of satellites in use, 
  3634. horizontal dilution of precision, antenna altitude
  3635. VTG
  3636.  
  3637. Track Made Good and Ground Speed
  3638. track made good, speed over ground
  3639. RMA
  3640.  
  3641. Recommended Minimum Specific Loran-C Data
  3642. latitude, longitude, track made good, speed over ground
  3643. RMC
  3644. *
  3645. Recommended Minimum Specific GPS/TRANSIT Data
  3646. latitude, longitude, time, date, track made good, speed 
  3647. over ground
  3648. *Sufficient by itself to provide a minimum fix of latitude, longitude, and 
  3649. time.
  3650. Problems and Solutions:
  3651. I'm not getting any output to GPS.DBF.
  3652. Is the right Settings/COM Port turned on?  Is Transfers/Receive GPS 
  3653. enabled?  Have you created (by DBF/Save As)  and DBF/Opened 
  3654. GPS.DBF?  Is your GPS unit turned on (The NMEA submenu is deeply 
  3655. buried in the Aux Setup of my Meridian.) and plugged in (J) to the 
  3656. right COM port? Is the GPS currently receiving data?  On the MAPIT 
  3657. side, is Tools/GPS Markers/Active enabled?  Is your Interface GPS 
  3658. GPS.DBF in the same directory as the GPS's?
  3659.  
  3660. MP1TOMP3
  3661. This MAPIT utility converts text files containing strings of 
  3662. latitude/longitude pairs (as might be generated from a CAD system or 
  3663. digitizer) to .MP3 file format. .MP3 files are about 30 percent of the size 
  3664. (in bytes) of their .MP1 counterparts.
  3665. Usage:
  3666.     MP1TOMP3 data_file [/options]
  3667. where
  3668. data_file
  3669. -
  3670. name of an .MP1 file to be converted to 
  3671. .MP3 format. An .MP3 file with the same 
  3672. root name is created.
  3673. options:
  3674. /id=
  3675. -
  3676. Region id stored in the region header; 
  3677. defaults to 0 (range: 0-65,533)
  3678. /layer=
  3679. -
  3680. Layer assignment stored in entity header; 
  3681. defaults to layer 0 (range: 0-65,533)
  3682. /color=
  3683.  
  3684. Force the line to color n rather than to the 
  3685. layer color.  Defaults to -1 (layer color).
  3686. /minzoom=
  3687. -
  3688. Min zoom factor stored in entity header; 
  3689. defaults to 0 (range: 0-65,533)
  3690. /maxzoom=
  3691. -
  3692. Max zoom factor stored in entity header; 
  3693. defaults to 0 (range: 0-65,533)
  3694. The .MP1 file format is a simple ASCII listing of latitude/longitude 
  3695. pairs representing strings of connected points. String termination is 
  3696. marked by separator (blank) records.  See APPENDIX E - Standard 
  3697. Lat/Lon Notation. ";" is a  comment character which instructs 
  3698. MP1TOMP3 to ignore the rest of the line.  A comment in the first 
  3699. column of a line means to ignore the line and not treat it as a blank to 
  3700. start a new line segment.
  3701.  
  3702. An example of the .MP1 data format is found in the ASCII file 
  3703. TRACK.MP1.
  3704.  
  3705. 48.944667    2.271500      Flying west of Paris by J-F MARTIN 
  3706. 48.945334    2.272000           using a GARMIN GPS
  3707. 48.946000    2.272500      Course 023.5, speed 92.8 mph
  3708. 48.946667    2.272833
  3709. 48.947334    2.273333
  3710. 48.948000    2.273833
  3711. 48.948834    2.274167
  3712. 48.949500    2.274667
  3713. 48.950167    2.275167
  3714. 48.950834    2.275500
  3715. 48.951500    2.276000
  3716. *48.952167    2.276500
  3717. 48.952834    2.276833
  3718. 48.953500    2.277333
  3719. 48.980667    2.295167
  3720. 48.981334    2.295667
  3721. 48.982000    2.296000
  3722. 48.982667    2.296500
  3723. 48.983500    2.297000
  3724.  
  3725. NMETOMP1
  3726. NMETOMP1 is the part of the MAPIT GPS Utility Package designed to 
  3727. convert and process raw NMEA 0183 Version 2 sentence data logged on 
  3728. disk by the GPS program and save it to an ASCII lat/long .MP1 format 
  3729. file.
  3730. NMETOMP1 is included because it can do the more computationally-
  3731. intensive straight line corridor pruning which GPS is not able to do on 
  3732. the fly.  Beyond straight format conversion, NMETOMP1 also provides 
  3733. a great deal of error checking, the coalescing of data partially and 
  3734. multiply defined by a set of NMEA sentences generated from a single 
  3735. fix, the dropping of duplicate points, simple data smoothing, and the 
  3736. pruning of unneeded points.
  3737. The NMETOMP1 Command Line:
  3738. Usage:
  3739. nmetomp1    input_file  [output_file]   [/options]
  3740. where
  3741. input_file
  3742. The required input data file name.  The input file 
  3743. must be an ASCII NMEA sentence file whose 
  3744. extension, unless otherwise specified, defaults to 
  3745. ".NME".
  3746. output_file
  3747. An optional name for the ASCII .MP1 formatted 
  3748. output file.  If no extension is specified, the default 
  3749. extension ".MP1" is used.  If no output_file is 
  3750. specified, the input_file name with the extension 
  3751. ".MP1" is used for output.
  3752. options
  3753. /average
  3754. /avg
  3755. Apply a simple smoothing algorithm to the data.  
  3756. Averaging is accomplished after duplicate points 
  3757. are removed and minimum spacing is 
  3758. determined.  /average has no noticeable effect on 
  3759. the display of data by MAPIT unless the 
  3760. /minxx=spacing option is applied with a spacing 
  3761. value greater than the 100 foot resolution of 
  3762. MAPIT's ability to reproduce data.  See 
  3763. Precision versus Accuracy below for a related 
  3764. discussion.
  3765. /decimals=n
  3766. The required number of places of precision after 
  3767. the decimal point for latitude, longitude, and 
  3768. time input data.  Defaults to 2.  A value of 0 
  3769. requires none but allows data after the decimal 
  3770. point.  The primary purpose of this option is to 
  3771. allow for the further checking for dropped data to 
  3772. the right of the decimal which are not spelled out 
  3773. in the NMEA specification.  Because the exact 
  3774. precision of your data is GPS vendor-dependent, 
  3775. you may want to examine the raw data and adjust 
  3776. this option accordingly.  As an example, 
  3777. specifying /decimals=1 will cause the otherwise 
  3778. correctly formatted time field "120156" in vendor 
  3779. X's GLL statement to be logged as an error but is 
  3780. not an overall debilitating error if the time is 
  3781. available from another sentence.  Some 
  3782. compromise toward less stringent error checking 
  3783. may be necessary.  (This is a fine-tuning option.  
  3784. If it works, don't fool unless the output shows too 
  3785. many bad points.)  See /error below.
  3786. /duplicates
  3787. Don't drop duplicate points but convert all data.  
  3788. By default, NMETOMP1 doesn't convert 
  3789. duplicate points: points taken within half a time 
  3790. second of the previous point or located within a 
  3791. distance of the last point implied by /decimals 
  3792. above (applied to the location expressed in 
  3793. minutes: e.g. /decimals=2 implies a minimum 
  3794. separation of 0.01 minutes).  Duplicate points 
  3795. can be created as the GPS looses signal 
  3796. acquisition, in which case the last fix may be 
  3797. retransmitted a number of times, or when 
  3798. physical movement of the GPS ceases.
  3799. /error
  3800. Log parsing error messages in output_file.ERR.  
  3801. Errors are normally due to incomplete sentences 
  3802. at GPS capture program startup.
  3803. /minfeet=n
  3804. /minft=n
  3805. /minmeters=n
  3806. /minkmeters=
  3807. n
  3808. /minmiles=n
  3809. /minnmiles=n
  3810. Prune (drop) points to support a precision of n 
  3811. feet, meters, kilometers, miles, or nautical miles.  
  3812. GPS fixes can be downloaded as often as every 
  3813. second or two resulting in a huge number of 
  3814. points which may be too close together to be 
  3815. warranted by a particular application.  One of the 
  3816. main strengths of NMETOMP1 is the program's 
  3817. ability to reduce the number of points to meet the 
  3818. user's criteria of data spacing and accuracy.  The 
  3819. pruning algorithm consists of two parts: fixes 
  3820. which are within the stated distance n of the last 
  3821. fix are dropped as being obviously unnecessary.  
  3822. Also intermediate points falling within a straight 
  3823. line corridor 2n wide between the last accepted 
  3824. fix (anchor point) and the next necessary one are 
  3825. themselves unnecessary.  A dramatic reduction in 
  3826. data is possible by specifying a minimum 
  3827. precision of even 500 feet.  (Remember that S/A - 
  3828. see below - reduces the accuracy of any given fix 
  3829. to +/-300 feet with a 95% probability.)
  3830. /unsupported
  3831. Log unsupported NMEA sentences in 
  3832. output_file.ERR  Unsupported NMEA sentences 
  3833. are those of which NMETOMP1 is not aware.  
  3834. They neither hurt nor are interpreted.  (See 
  3835. Supported NMEA 0183 Version 2.00 Sentences: 
  3836. for a list of supported sentences.)
  3837. /?
  3838. This option displays a brief explanation of all 
  3839. command line options on the screen.
  3840. Example Input/Output:
  3841. Two samples of data input and one of data output are listed below.  The 
  3842. data input, although conforming to the NMEA 0183 version 2.00 
  3843. specification, can vary from GPS to GPS because of the variety of 
  3844. sentences available, their ordering, data precision, and dropped 
  3845. elements.  
  3846. The input listed below is from a Magellan GPS Meridian, a less 
  3847. expensive if not popular hand-held GPS.  The Meridian supports three 
  3848. different types of NMEA output chosen from deep within its menuing 
  3849. system (Aux Menu, second page, NMEA): 0183A, 0813B, and 0813C.  
  3850. The 0813A uses NMEA sentences from a prior standard no longer 
  3851. recommended for use and not supported by NMETOMP1.  0813B's 
  3852. output is shown in Sample Input A, and 0813C's output is shown in 
  3853. Sample Input B.  Note that in both cases a single fix gives rise to 
  3854. multiple sentences which may contain redundant data.  (See Supported 
  3855. NMEA 0183 Version 2.00 Sentences: below for a list of required and 
  3856. supported sentences.)  In the Meridian examples, 0813C (Sample Input 
  3857. B) gives more data unless you require that the date be included.  On the 
  3858. other hand, Sample A's data carries mandatory checksums for data 
  3859. accuracy.
  3860. Sample Input A:
  3861. $GPRMB,A,0.02,L,0008,0009,4027.05,N,07935.27,W,003.9,162.,00.0,V*21
  3862. $GPRMC,200150,A,4030.81,N,07936.83,W,00.0,000.0,150394,08.,W*4C
  3863. $GPRMB,A,0.01,L,0008,0009,4027.05,N,07935.27,W,003.9,162.,00.0,V*22
  3864. $GPRMC,200156,A,4030.80,N,07936.83,W,00.0,000.0,150394,08.,W*4B
  3865. $GPRMB,A,0.01,L,0008,0009,4027.05,N,07935.27,W,003.9,162.,00.0,V*22
  3866. $GPRMC,200157,A,4030.80,N,07936.83,W,00.0,000.0,150394,08.,W*4A
  3867. Sample Input B:
  3868. $GPGLL,4030.899,N,07936.455,W,012611.861,A
  3869. $GPAPB,A,A,0.3,R,N,V,V,162.7,T,009,166.8,T,85.3,T
  3870. $GPGGA,012611.86,4030.90,N,07936.46,W,1,07,4.1,,,,,, 
  3871. $GPVTG,81.5,T,89.9,M,2.7,N,5.0,K
  3872. $GPBWC,012611.86,4027.05,N,07935.27,W,166.8,T,175.2,M,4.0,N,009
  3873. $GPGLL,4030.910,N,07936.449,W,012615.921,A
  3874. $GPAPB,A,A,0.3,R,N,V,V,162.7,T,009,166.9,T,160.9,T
  3875. $GPGGA,012615.92,4030.91,N,07936.45,W,1,07,5.1,,,,,,
  3876. $GPVTG,6.0,T,14.4,M,8.2,N,15.2,K
  3877. $GPBWC,012615.92,4027.05,N,07935.27,W,166.9,T,175.3,M,4.0,N,009
  3878. $GPGLL,4030.936,N,07936.449,W,012621.369,A
  3879. $GPAPB,A,A,0.3,R,N,V,V,162.7,T,009,167.0,T,173.6,T
  3880. $GPGGA,012621.37,4030.94,N,07936.45,W,1,07,3.9,,,,,,
  3881. $GPVTG,353.4,T,1.8,M,22.7,N,42.1,K
  3882. $GPBWC,012621.37,4027.05,N,07935.27,W,167.0,T,175.3,M,4.0,N,009
  3883. Note:     GPAPB Autopilot Sentence "B"  -  unsupported .
  3884.     GPBWC Bearing & Distance to Waypoint  -  unsupported.
  3885. Sample Output:
  3886.  
  3887.     1           2          3       4        5       6      7        8    9
  3888.  40.514983  -79.607583      0 012611.861UT 000000  81.5   5.0km/hr  4.1  7
  3889.  40.515167  -79.607483      0 012615.921UT 000000   6.0  15.2km/hr  5.1  7
  3890.  40.515600  -79.607483      0 012621.369UT 000000 353.4  42.1km/hr  3.9  7
  3891.  
  3892. 1
  3893. Latitude in decimal degrees.  Negative implies south.
  3894. 2
  3895. Longitude in decimal degrees.  Negative implies west.
  3896. 3
  3897. Altitude in meters above sea level.
  3898. 4
  3899. Universal Time (GMT) HHMMSS.SSS
  3900. 5
  3901. Date at the Prime Meridian.  DDMMYY
  3902. 6
  3903. True course made good.
  3904. 7
  3905. Speed over ground in kilometers per hour.
  3906. 8
  3907. Horizontal dilution of precision.
  3908. 9
  3909. Number of satellites in use (versus in view).  0 - 12.
  3910. Terms defined:
  3911. Speed over ground, track made good:  GPS terminology, probably 
  3912. rightly, is oriented toward non-land-based conveyances (airplanes and 
  3913. ships).  In terms of air and water navigation, ones course (track) and 
  3914. speed can be referenced either to that steered and covered through the 
  3915. air or water or referenced to the "absolute" coordinate system of the 
  3916. ground.  Hence the unambiguous terminology speed over ground and 
  3917. track made good.
  3918. Dilution of precision:  This is a number showing the added uncertainty 
  3919. of a fix due to the relative location of the satellites when the fix is made.  
  3920. A simple way to think of the geometry of a fix is to picture two fuzzy 
  3921. lines crossing each other at right angles.  If the lines' fuzziness 
  3922. represents the limits of their accuracy, the area of fuzziness at their 
  3923. intersection is the uncertainty of the fix.  As the lines move from the 
  3924. optimal right angle intersection to an oblique intersection, the area of 
  3925. imprecision increases.  Dilution of precision due to satellite geometry 
  3926. works the same way.  Even in the best of circumstances, a minimum 
  3927. value of uncertainty is established by minute variations in the 
  3928. satellites' atomic clocks and variations of the speed of the propagation 
  3929. of the signal through the atmosphere due to changes in barometric 
  3930. pressure, temperature, moisture, and so forth.  This inherent 
  3931. imprecision can be amplified by the satellites' relative positions to each 
  3932. other and to the observer.  Hence the dilution of precision.  Smaller 
  3933. values are better.
  3934. The format of this output, known as (extended) .MP1 by Allison 
  3935. Software, is not precisely defined.  The program MP1TOMP3 converts 
  3936. the first two columns, the latitude and longitude, to .MP3 format and 
  3937. treats all following text as comments.  Whether there are adjustments 
  3938. in the following columns as GPS data conversion evolves remains to be 
  3939. seen.  The data is defined in terms of the order of white space-separated 
  3940. characters groups and not by absolute column position.
  3941. Example Data Reduction Session:
  3942. From the output data left in GPS2.NME by the GPS Windows utility 
  3943. (\MAPIT20\EXAMPLES\GPS on your MAPIT CD), create two .MP3 
  3944. track files, one of the raw data and the second with an average of points 
  3945. at a minimum spacing of 200 feet.  Color the averaged data red, and 
  3946. combine them both in the same file for display and plotting from within 
  3947. MAPIT.
  3948.     C:> nmetomp1  gps2  x 
  3949.         680 fixes output out of 680.  0 errors in 3871 lines.
  3950.     C:> nmetomp1  gps2  x2  /minft=200  /avg
  3951.         175 fixes output out of 680.  0 errors in 3871 lines.
  3952.     C:> mp1tomp3  x 
  3953.     C:> mp1tomp3  x2  /color=4
  3954.     C:> copy /b  x.mp3+x2.mp3
  3955.     C:> mymap  x
  3956. The pen associated with color 4 was increased to 0.5mm wide in 
  3957. WIDE.PEN (made from STD.PEN) and MYMAP.BAT modified with 
  3958. /pen=wide to create the following plot.
  3959.  
  3960. GPS's Raw Data vs. 200 Foot Average
  3961. The block-like character of the original track represents the resolution 
  3962. limits of MAPIT permanent line data.  MAPIT`s dynamically displayed 
  3963. moving markers are not subject to this quantum limitation and will 
  3964. display between minimum line spacings.
  3965.  
  3966. COMBINED.MP3 Plotted at 1:300,000
  3967. The preceding plot shows the results of three tracks taken from an 
  3968. automobile on both major roads (shown) and minor roads (not shown).  
  3969. The plot, some 15 miles wide and at approximately 3.3 times the 
  3970. resolution of MAPIT's underlying data, demonstrates the difficulty of 
  3971. creating maps truly accurate in all detail.  Parts of this plot make more 
  3972. sense when viewed in color with rivers, county, and populated place 
  3973. boundaries turned on.  The preceding more-detailed GPS plot was 
  3974. taken from a portion of the left side of the smallest triangle near the 
  3975. upper right of this plot.
  3976.  
  3977. SIMULATE
  3978. This MAPIT utility uses simulation scripting instructions to update 
  3979. MAPIT's moving marker dBASE IV file forcing marker icons to travel 
  3980. across MAPIT's map display in accelerated real time.  The simulation 
  3981. scripting instructions are free-format statement describing the motion 
  3982. of one or more objects in terms of location, date, time, speed, and 
  3983. heading which the user enters into a text file. SIMULATE interprets 
  3984. these instructions, generates a time-based simulation stream, and feeds 
  3985. this stream to MAPIT's moving marker dBASE IV GPS interface.  To 
  3986. view the simulation, the user must simultaneously run MAPIT within 
  3987. another session of Windows while enabling the TOOLS/GPS 
  3988. Markers/Active menu item to make them visible.  See the MAPIT 
  3989. TOOLS/GPS Markers instructions elsewhere in this manual for 
  3990. detailed general instructions and the Advanced Considerations 
  3991. section below for specific instructions.
  3992. The SIMULATE Command Line:
  3993. Use:
  3994.     SIMULATE script  [output_dbf]  [/options...]
  3995. where
  3996. script
  3997. -
  3998. a text file holding simulation instructions. 
  3999. Assumes a .SIM extension. Command line 
  4000. arguments take precedence over statements 
  4001. in the script file.
  4002. Output_dbf
  4003. -
  4004. an optional dBASE IV GPS Interface 
  4005. database to which the simulation instructions 
  4006. will be written. Defaults to "GPS" and 
  4007. assumes a .DBF extension.
  4008. options:
  4009. /rate=
  4010. -
  4011. run the simulation at n times simulated 
  4012. time.
  4013. /delta_time=
  4014. -
  4015. update the simulation every n seconds of 
  4016. simulated time.  If not specified, the delta 
  4017. time is automatically calculated and 
  4018. adjusted to maintain /rate above.
  4019. /delay=
  4020. -
  4021. delay the start of the simulation n seconds. 
  4022. Use this option to facilitate task switching 
  4023. between the simulation task and MAPIT. 
  4024. Defaults to 5.
  4025. /startat=
  4026. -
  4027. begin the simulation at this date/time offset.
  4028. /stopat=
  4029. -
  4030. end the simulation at this date/time offset.
  4031. /full_time
  4032. -
  4033. override any "start at/stop at" simulation 
  4034. statements in .SIM script and run the 
  4035. simulation its full natural length.
  4036. /single=
  4037. -
  4038. output only the named object
  4039. /mp1=
  4040. -
  4041. output the simulation tracks to an ASCII 
  4042. .MP1 file rather than to the .DBF. When 
  4043. converted to .MP3 format, the tracks are 
  4044. stripped of their time-dependent orientation 
  4045. and may be viewed in detail from within 
  4046. MAPIT.
  4047. /short
  4048. -
  4049. output only lat/lon pairs to an ASCII .MP1 
  4050. file without date/time information to 
  4051. produce a smaller file.
  4052. /overwrite
  4053. -
  4054. delete any data in an existing .mp1 before 
  4055. adding new simulation tracks.  By default, 
  4056. an error message is issued if the .mp1 file 
  4057. already exists and neither the /append nor 
  4058. the /overwrite option is specified.
  4059. /append
  4060. -
  4061. add newly simulated track data to the end of 
  4062. the .mp1 file.
  4063. /dump
  4064. -
  4065. create a debug dump of the contents of each 
  4066. leg of each object
  4067. /help
  4068. -
  4069. display a list of legal simulation file 
  4070. statements.
  4071. /version
  4072. -
  4073. display program's version.
  4074. /?
  4075. -
  4076. display this output.
  4077. Script File:
  4078. The required script file is a text file with the nominal file name 
  4079. extension .SIM.  Script files hold instructions defining objects and the 
  4080. legs of a journey each object takes. This file is free format on a line-by-
  4081. line basis and uses the `;' character as a comment.  Everything to the 
  4082. right of the comment character is ignored.  Within limitations, the order 
  4083. of statements is not important.  Object legs may be defined out of 
  4084. sequence within the constraints of the syntax. (See USAIR.SIM.) The 
  4085. script file can also contain some statements specifying information 
  4086. which otherwise may be entered as command line arguments. For 
  4087. instance, DELTA TIME corresponds to /delta_time=.  Selections made 
  4088. at the command line override those made in a script file allowing you to 
  4089. have a general definition which you can override easily at program 
  4090. invocation.  Reference your script file from the command line as the 
  4091. first command line argument as in
  4092.     C:\>  simulate  goose
  4093. where goose.sim is a script file.
  4094. General statements:
  4095. OUTPUT DBF: file_name
  4096. ; Output to MAPIT's Moving 
  4097. Marker GPS .DBF.  Defaults to 
  4098. "GPS".
  4099. SIMULATION RATE number
  4100. ; Speed up simulation by factor n.  
  4101. DELTA TIME seconds
  4102. ; Set the time between simulation 
  4103. calculations in seconds.
  4104. DELAY seconds
  4105. ;  The delay before starting the 
  4106. simulation.  Defaults to 5 seconds.
  4107. START AT Date/Time
  4108. ; Begin the simulation at 
  4109. Date/Time.
  4110. STOP AT Date/Time
  4111. ; End the simulation at Date/Time.
  4112. GREAT CIRCLE or GC
  4113. ; Plot each leg of the course as a 
  4114. great circle.  (Default.)
  4115. STRAIGHT LINE or RHUMB
  4116. ; Plot each leg of the course at a 
  4117. constant heading.
  4118. If it doesn't already exist, SIMULATE creates the OUTPUT DBF and 
  4119. dynamically adds records to it as required by the simulation script. 
  4120. Each object requires one .DBF record except when two exist in non-
  4121. overlapping time intervals and can therefore share the same physical 
  4122. record.
  4123. The SIMULATION RATE indicates how fast a simulation will run.  A 
  4124. rate of 3600 would run the simulation at one second wall clock time for 
  4125. each hour of simulated time.  Rates of several hundred to several 
  4126. hundred thousand are typical.
  4127. DELTA TIME sets the time between simulation calculations in seconds 
  4128. and can be thought of as the granularity of the simulation. If DELTA 
  4129. TIME is specified, the SIMULATION RATE may not be attained 
  4130. especially under compute-bound conditions. Not explicitly specifying 
  4131. DELTA TIME allows SIMULATE to set that value dynamically in an 
  4132. effort to achieve the target SIMULATION RATE.  In this case, 
  4133. SIMULATE initially sets DELTA TIME to 60 seconds and adjusts it up 
  4134. or down every few seconds as the complexity of the simulation and the 
  4135. multitasking load of the computer dictate.
  4136. Each simulation has a natural start and stop time dictated by its script.  
  4137. You can override these times to start later or end earlier by with the 
  4138. START AT/STOP AT Date/Time statements. 
  4139. Date/Time format:
  4140. MM-DD-[YY]YY,hh:mm:ss     (6-7-97,16:08)
  4141. or 
  4142. DD-MMM-[YY]YY,hh:mm:ss    (7-June-1997,16:08)
  4143. A single number by itself defaults to the hour.  If there is no date, the 
  4144. date defaults to 1-1-1970. Unfortunately the range of the format is 
  4145. rather limited.  No date before 1-1-1970 is acceptable as is none after 
  4146. February 5, 2036 due to limitations in Microsoft's mktime() function.  
  4147. An attempt is made to adjust between standard and savings time based 
  4148. on the date.
  4149. Object/Leg statements:
  4150. DEFINE object_name
  4151. ; Establish an object.  The name 
  4152. may be up to 20 characters but 
  4153. must not contain blanks.
  4154. Date/Time, +Time, or NEW LEG
  4155. Establish a course leg in an 
  4156. object.  "+" indicates relative.
  4157. Latitude Longitude
  4158. ; Define starting/ending point of 
  4159. a leg.
  4160. SPEED number    
  4161. ; The speed of the projection at 
  4162. the surface of the earth.
  4163. KNOTS, MPH, KMPH, MPS 
  4164. (meters/sec)
  4165. ; Units of speed.  (Default: 
  4166. KNOTS) 
  4167. HEADING ddd
  4168. ; Course heading in degrees from 
  4169. true north.
  4170. TOWARD Latitude Longitude
  4171. ; Continue on this leg toward a 
  4172. point.  May over or undershoot.
  4173. FOR Time
  4174. ; Continue on this leg for this 
  4175. time.
  4176. COLOR number
  4177. ; The color number (0 to 15) of 
  4178. the object's marker as displayed 
  4179. within MAPIT.  -1 to default to 
  4180. the MAPIT default.
  4181. PERIOD Time
  4182. ; Period of an orbit around 
  4183. rotating earth.  Note that a period 
  4184. of 90 minutes should be stated as 
  4185. PERIOD 1:30.
  4186. GEOSYNCHRONOUS
  4187. ; Establish a geosynchronous 
  4188. orbit around the rotating earth.
  4189. FIXED
  4190. ; Establish an orbit fixed in space 
  4191. (relative to the stars) around the 
  4192. rotating earth.
  4193. Each object must be defined once and only once by the DEFINE 
  4194. statement.  Multiple legs may follow a definition uninterrupted or they 
  4195. may be interspersed with other objects.  In the latter case, focus is re-
  4196. established on an already-defined object by stating its name without the 
  4197. DEFINE keyword.
  4198. Each leg of an object is defined in context of a Date/Time.  Stating a 
  4199. Date/Time, a relative time (+Time), or NEW LEG establishes a new leg.  
  4200. "+3" would start a new leg 3 hours after the last.
  4201. The keywords PERIOD, GEOSYNCHRONOUS, and FIXED imply an 
  4202. orbital simulation of a great circle around a rotating earth.  Because the 
  4203. orbit is fixed in space above the rotating earth, the great circle orbit will 
  4204. appear shortened or lengthened depending upon its direction and will 
  4205. not, in general, come back to its starting point as would a great circle 
  4206. fixed on the earth's surface.  Specifying the PERIOD of an orbit in 
  4207. hours, minutes, and seconds, implies a projected speed on the surface of 
  4208. the earth of the object which will be less than its speed at whatever 
  4209. altitude would be necessary to give it that period.  All orbits are 
  4210. assumed to be circular.  The circumference of the spherical earth is 
  4211. assumed to be exactly 21,600 nautical miles (60 miles/degree times 360 
  4212. degrees).  The length of a sidereal day (when the earth turns back to 
  4213. the same orientation in space) is assumed to be 23:56:04.098 hours.  A 
  4214. GEOSYNCHRONOUS orbit sets the speed such that an object traveling 
  4215. in an easterly direction (heading = 090) remains forever above the same 
  4216. point on the earth.  A FIXED orbit implies 0 speed with respect to the 
  4217. stars.  Heading, in that case, doesn't matter. 
  4218. Types of legs:
  4219.  
  4220. pt to pt, time, no speed
  4221. Types 1 & 5
  4222. pt to pt, speed, no time
  4223. Types 2 & 6
  4224. pt, time, speed, toward destination
  4225. Types 3 & 7
  4226. pt, time, speed, heading, no destination
  4227. Types 4 & 8
  4228. GC Orbit around the rotating earth: pt, period, speed, 
  4229. heading, no destination
  4230. Type 9
  4231. Example Output:
  4232. SIMULATE produces the following output when run against the 
  4233. GOOSE.SIM simulation file found on the MAPIT CD-ROM under the 
  4234. \MAPIT20\EXAMPLES\SIMULATE directory.
  4235.  
  4236. Natural starting time: 8-1-96,00:32:00, Forced 
  4237. starting time: 9-30-96,00:00:00
  4238. Stopping time: 10-21-96,19:35:00
  4239. Running simulation to C:GPS.DBF
  4240. 21 days, 19:35:00 sec Simulated Time at a rate 
  4241. of 50000 X real time.
  4242. Estimated time to simulate: 38 seconds.
  4243.  
  4244. Average delta time increments: 98 seconds.
  4245. 35 seconds elapsed time, 53854 effective rate
  4246. Used 3 records out of 5.
  4247. Note that the starting time was delayed (the simulation shortened) by a 
  4248. START AT statement in GOOSE.SIM.  Similarly, the requested 
  4249. SIMULATION RATE of 50,0000 X over 38 seconds yielded a 53,854 X 
  4250. effective rate over 35 seconds by increasing the average delta time 
  4251. increment from the default 60 seconds to 98 seconds.  If you needed a 
  4252. more precise simulation, you would have to use the DELTA TIME 
  4253. statement to specify it exactly (at the probable expense of the 
  4254. simulation rate.)  Three records out of a total of five were used in 
  4255. C:GPS.DBF.
  4256. Example Simulation Script File: 
  4257.  
  4258. ; demotype.sim  -  Demonstrate 4 basic types.
  4259.  
  4260. Output DBF: c:gps
  4261. Simulation rate 1000
  4262.  
  4263. 08:48 define xxx                 ; TYPE 1
  4264.          color 4  40.3N 80W             ; Pittsburgh
  4265.  
  4266. 09:30    36.9N 76.3W                    ; to Norfolk
  4267.          color 2                        ; TYPE 2
  4268.          speed 250 mph                  
  4269.          42.9N 78.9W                  ; to Buffalo
  4270.  
  4271. New Leg  toward 36.2N 115.1W            ; to Las Vegas
  4272.          color 6                 ; TYPE 3
  4273.          speed 1000
  4274.          for 03:16                      
  4275.  
  4276. New Leg  heading 070 Rhumb             ; TYPE 8 
  4277.          color 5
  4278.          for 03:16
  4279. Demonstration Scripts:
  4280. To view these demonstration simulation scripts, you must have two 
  4281. DOS sessions running concurrently under Windows, the first running 
  4282. MAPIT and the second, SIMULATE.  Your Windows environment 
  4283. must be set up to allow the background execution of the second process, 
  4284. SIMULATE.  From within MAPIT, mouse to the TOOLS/GPS Markers 
  4285. sub menu and click on Active to enable looking for marker activity.  (If 
  4286. you get the warning message, "Error opeing C:GPS.DBF.  Create an 
  4287. empty DBF?", respond "Y".  You may wish to click off the other options 
  4288. and experiment with them later.  You will probably want to set 
  4289. TOOLS/GPS Markers/Scan delay to 0.1 seconds for minimal delay 
  4290. between scans.  This will enhance marker response at the expense of 
  4291. making grabbing the attention of the top menu command levels harder, 
  4292. you may have to sit with your finger on the mouse button longer.  Begin 
  4293. (Ctrl<Esc>) or context switch back (Alt<Esc>) to your other session, 
  4294. switch to your CD-ROM drive, and execute a script as follows.
  4295. Run these scripts by entering
  4296.                  D:\>  cd mapit20\examples\simulate
  4297.     D:\.>  dir                (See what's there.) 
  4298.     D:\.>  ..\..\exes\simulate  goose    (DOS 6.x/W3.1) 
  4299.     D:\.>  ...\exes\simulate  goose    (DOS 7/W95) 
  4300. If you've set up a mapit directory on your hard drive and are pointing to 
  4301. the proper directories, you could enter:
  4302. C:\mapit>  simulate  D:goose
  4303. or
  4304.     D:\.>  C:simulate  goose
  4305. (The variations and joys of DOS are boundless for the initiated.)  
  4306. Context switch back to your MAPIT session and look for the moving 
  4307. markers to appear after a five second delay.  Enter "2" or "A" to position 
  4308. yourself to the whole US.  While you're entering commands within 
  4309. MAPIT, the moving markers will cease to update but will restart after 
  4310. your command or repaint is finished.
  4311. Goose.sim
  4312. This script shows the migration of three GPS-transponder-banded 
  4313. Canada Geese in their flights from Canada to the US over a period of 
  4314. several months. The data was provided by the New York Coop Research 
  4315. Unit (USFWS-NBS) at Cornell University and Ducks Unlimited with 
  4316. the help of Susan Sheaffer at Cornell.  Every few hours or days, a 
  4317. passing satellite would turn on a lightweight GPS attached to each bird 
  4318. thereby establishing its position.  This location was relayed back to the 
  4319. original satellite and then on to a data gathering site in Maryland.  This 
  4320. data demonstrates the advantages as well as the limitations of 
  4321. SIMULATE.  If you plot the tracks of the geese by entering the data 
  4322. directly into a .MP1 file and converting it to .MP3 format for display by 
  4323. MAPIT, you can see where the geese have flown but have no idea when 
  4324. or of their relationships to each other over time.  Displaying the data 
  4325. through SIMULATE immediately shows the flocks as a function of 
  4326. time clearly revealing their relationships to each other in space at any 
  4327. particular time.  You will also note that all three flocks begin their 
  4328. migration within a few days of each other.  The granularity of the data 
  4329. and the limitations of SIMULATE become apparent.  SIMULATE 
  4330. calculates the average speed between sightings or fixes, if you will.  
  4331. Sightings separated by several days and a few miles may show an 
  4332. average speed of only one or two miles an hour, well below goose stall 
  4333. speed, when, in point of fact, the birds were actually stationary most of 
  4334. the time with a brief but fast flight between locations.  Similarly when 
  4335. viewing data over a long period, one may choose a large SIMULATION 
  4336. RATE (50,000 in this script) to speed the process thereby masking short 
  4337. but significant side excursions which warrant more detailed 
  4338. examination under a finer DELTA TIME simulation.  You can override 
  4339. script simulation settings from the command line as demonstrated 
  4340. below.
  4341. USAir.sim
  4342. Taken from the USAir City Timetable for Pittsburgh, USAIR.SIM 
  4343. simulates many of the Monday, May 8, 1995 morning flights into and 
  4344. out of the Greater Pittsburgh International Airport.  The assumptions 
  4345. are that the aircraft are in flight from origin to destination between the 
  4346. listed gate times, and that they fly great circle routes from point to 
  4347. point.  Obviously these assumptions are oversimplified, but the 
  4348. resulting simulation reflects, to a greater or lesser extent, the actual 
  4349. traffic patterns around Pittsburgh and to many places in the country 
  4350. and the world flown by USAir from Pittsburgh. USAIR.SIM is a large 
  4351. file simulating up to 271 simultaneous flights.  It is easy to get buried 
  4352. in the data.  You may want to view it several different times in several 
  4353. different ways.  As delivered, MAPIT's history file MAPIT.SAV 
  4354. contains four different views (positions) associated with digits 1 
  4355. through 4.
  4356. pos
  4357. zoom
  4358. location
  4359.  
  4360. 1
  4361. 2.6
  4362. 37:40N 
  4363. 55:24W
  4364. US & 
  4365. Europe
  4366. 2
  4367. 6.4
  4368. 37:29N 
  4369. 97:05W
  4370. US
  4371. 3
  4372. 19.4
  4373. 40:35N 
  4374. 80:00W
  4375. NE US
  4376. 4
  4377. 173.6
  4378. 40:27N 
  4379. 79:49W
  4380. Western PA
  4381. Positions 1 and 2 (POSITION/Restore n, or just type n from within 
  4382. MAPIT) give global and US views, position 3 shows more detail, and 
  4383. position 4 shows aircraft activity over the Pittsburgh area with the type 
  4384. of detail an air-traffic controller might see. You can most rapidly switch 
  4385. between views if you run MAPIT without any background data.
  4386.     C:\>  mapit  nul  /noe
  4387. From the broader viewpoints, turn on TOOLS/ GPS Markers/Marker 
  4388. trails to see the entire air routes.  Marker trails off displays the location 
  4389. of each aircraft as it flies en-route.  The simulation is set to run from 6 
  4390. AM until 2 PM.  If you start MAPIT with the command line argument 
  4391. /FULL_TIME, you'll see all the data for a whole day.  Notice that the 
  4392. early morning red eye flights starting on the west coast heading to 
  4393. arrive in Pittsburgh about morning rush hour.  There is a flurry of air 
  4394. traffic between 9:30 and 10:05 AM which you can examine in detail by 
  4395. reducing the DELTA TIME to 15 seconds for a smoother display.
  4396.     C:\>  simulate  USAir  /delta=15  /start=5-8-95,9:30 /stop=5-8-95,10:05
  4397. View this from positions 4 and 3.
  4398. After running the USAir simulation, delete the output file C:GPS.DBF 
  4399. because it is large enough to slow down subsequent smaller 
  4400. simulations.
  4401.  
  4402. USAir.sim Output, Pos 2, /Full_time
  4403. orbits.sim
  4404. This simulation depicts satellites in various circular orbits.  For it to be 
  4405. effective, you should have the markers trails option turned on in 
  4406. MAPIT and should delete the file C:GPS.DBF to speed repaint if you've 
  4407. just run the USAir simulation.  View this simulation from the standard 
  4408. world view.
  4409. The following map was produced from output from ORBITS1.SIM 
  4410. combined with a great circle through Cape Canaveral, Florida and 
  4411. demonstrates a rocket's being launched on a heading of 090 for 
  4412. minimum north/south trajectory excursion.  Notice how, because of the 
  4413. earth's rotation, each pass falls short of the previous one while the 
  4414. great circle passes back through the same point.  The figure eight over 
  4415. Africa is a geosynchronous orbit with a vertical component viewed for a 
  4416. day.
  4417.  
  4418. You can replicate the rocket orbit from your MAPIT hard drive 
  4419. directory with: 
  4420. C:>  simulate  orbits1  /single=153  /mp1=temp
  4421. C:>  mp1tomp3  temp  /color=4
  4422. C:>  mymap  temp
  4423. day.sim
  4424. year.sim
  4425. These simulations show the positions of the sun and a stationery object 
  4426. (with respect to the stars) over the course of a day and year.  See the 
  4427. scripts for instructions about altering the scripts and zooming in to 
  4428. view the end conditions.  You may well ask weighty questions such as, 
  4429. "What is a day?  What is a year?"  The technical details of these 
  4430. simulations is beyond the scope of this manual and certainly beyond the 
  4431. understanding of its author.  View these simulations first from the 
  4432. standard world view.
  4433. Advanced Considerations:
  4434. SIMULATE dynamically adds to the length of its output .DBF as 
  4435. needed.  MAPIT will scan to the end of the .DBF looking for active 
  4436. records.  If the numbers are large, this scan, even if there are few active 
  4437. records, can take an appreciable time (the better part of a second or 
  4438. more depending upon processor speed and loading).  The TOOLS/GPS 
  4439. Markers/Scan delay, commonly set to 1 second for GPS and other slow 
  4440. sources but to 0.1 seconds for smoother display of  accelerated 
  4441. simulations, is added to the natural delay of the .DBF scan and display.  
  4442. The total of these is the time between the redisplay of marker icons and 
  4443. affects the smoothness of movement and the closeness of adjacent 
  4444. marker displays.  If you've just run a simulation such as USAIR.SIM 
  4445. which can allocate almost 300 records, subsequent less-demanding 
  4446. simulations can be adversely affected.  Your best bet, then, is to delete 
  4447. the C:GPS.DBF database before running the smaller simulation.  You 
  4448. cannot delete that file while MAPIT is running and has it active.  
  4449. Either deactivate it or exit MAPIT, then delete.  If you restart MAPIT 
  4450. immediately, MAPIT will prompt you when it tries to open the non-
  4451. existent file asking whether it may create it.  Answer "Y"es.  If you 
  4452. start SIMULATE first in the absence of its target file, it will notify you 
  4453. that it's creating a new file and then create it.  Either way insures that 
  4454. you will run with the minimum database length required for that 
  4455. simulation under those settings.  SIMULATE reuses inactive records 
  4456. during a simulation, but the exact amount of overlap and therefore the 
  4457. requirements is dependent upon the DELTA TIME, SIMULATION 
  4458. RATE, and start/stop times of each simulation. 
  4459.  
  4460. APPENDIX A - FEATURE/LAYER ASSIGNMENTS
  4461.  
  4462. By Feature:
  4463. Political/Ocean Boundaries
  4464. INTL_PO         80
  4465. TREATY_PO       82
  4466. OCEAN_PO        83
  4467. DATE_LINE_PO    88
  4468. ADMIN1_PO       81
  4469. ADMIN2_PO       89
  4470. ADMIN3_PO       94
  4471. SPECIAL_PO      95
  4472. DISPUTED_PO     96
  4473. MET_PO          65
  4474. ICE_PO          84
  4475. ICE_WATER_PO    86
  4476. GLACIER_PO      44
  4477. SNOW_PO         45
  4478. ICE_LAND_PO     46
  4479. COAST_PO        85
  4480. SEA_WALL_PO     87
  4481. POLITICAL_TXT  117
  4482. COUNTRIES_TXT  118
  4483. STATES_TXT      64
  4484. COUNTIES_TXT    66
  4485.  
  4486. Rivers
  4487. RIV_DN          40
  4488. LAKES_DN        41
  4489. SAND_DN         42
  4490. CANALS_DN       43
  4491. CON_DN          47
  4492. DRAINAGE_PT     74
  4493. DRAINAGE_TXT    75
  4494.  
  4495. Roads
  4496. DIV_HWY_RD      70
  4497. PRI_HWY_RD      71
  4498. TRAILS_RD       72
  4499. CON_RD          73
  4500.  
  4501. Railroads
  4502. SINGLE_RR       90
  4503. MULTI_RR        91
  4504. LIGHT_RR        92
  4505. CON_RR          93
  4506.  
  4507. Transportation
  4508. SHEDS_TS        54
  4509. BRIDGES_TS      55
  4510. CAUSEWAYS_TS    56
  4511. TUNNELS_TS      57
  4512. FERRIES_TS      58
  4513. FORDS_TS        59
  4514. Also specifies airports
  4515. TRAN_STRUCT_TXT 78
  4516.  
  4517. Utilities
  4518. POWER_UT       100
  4519. PHONE_UT       101
  4520. EX_PIPES_UT    102
  4521. UN_PIPES_UT    103
  4522. UTILITIES_TXT   62
  4523. TOWERS          63
  4524.  
  4525. Cities & Landmarks
  4526. CULT_LM         50
  4527. POP_PLACES_TXT 119
  4528.   0 population 
  4529. CITY_0         111
  4530.   1 - 1000  
  4531. CITY_1         112
  4532.   1001 - 10,000  
  4533. CITY_10        113
  4534.   10,001 - 100,000  
  4535. CITY_100       114
  4536.   >100,000  
  4537. CITY_BIG       115
  4538.  
  4539. Ocean Features
  4540. MISC_OF         51
  4541. REEFS_OF        52
  4542. LIMITS_OF       53
  4543. DEPTH_200M_OF   97
  4544. DEPTH_1000M_OF  98
  4545. DEPTH_2000M_OF  99
  4546. DEPTH_3000M_OF 104
  4547. DEPTH_4000M_OF 105
  4548. DEPTH_5000M_OF 106
  4549. DEPTH_6000M_OF 107
  4550. DEPTH_7000M_OF 108
  4551. CONT_SHELF_OF  109
  4552. TEC_PLATES_OF  110
  4553. FRAC_ZONES_OF   67
  4554. LINEATIONS_OF   68
  4555. MAJOR_SEAS_TXT  76
  4556. OCEAN_FEAT_TXT  77
  4557.  
  4558. Land Cover
  4559. LAND_COVER      60
  4560. LAND_COVER_TXT 116
  4561.  
  4562. By Layer:
  4563.  
  4564. RIV_DN          40
  4565. LAKES_DN        41
  4566. SAND_DN         42
  4567. CANALS_DN       43
  4568. GLACIER_PO      44
  4569. SNOW_PO         45
  4570. ICE_LAND_PO     46
  4571. CON_DN          47
  4572. CULT_LM         50
  4573. MISC_OF         51
  4574. REEFS_OF        52
  4575. LIMITS_OF       53
  4576. SHEDS_TS        54
  4577. BRIDGES_TS      55
  4578. CAUSEWAYS_TS    56
  4579. TUNNELS_TS      57
  4580. FERRIES_TS      58
  4581. FORDS_TS        59
  4582. LAND_COVER      60
  4583. UTILITIES_TXT   62
  4584. TOWERS          63
  4585. STATES_TXT      64
  4586. MET_PO          65
  4587. COUNTIES_TXT    66
  4588. FRAC_ZONES_OF   67
  4589. LINEATIONS_OF   68
  4590. DIV_HWY_RD      70
  4591. PRI_HWY_RD      71
  4592. TRAILS_RD       72
  4593. CON_RD          73
  4594. DRAINAGE_PT     74
  4595. DRAINAGE_TXT    75
  4596. MAJOR_SEAS_TXT  76
  4597. OCEAN_FEAT_TXT  77
  4598. TRAN_STRUCT_TXT 78
  4599. INTL_PO         80
  4600. ADMIN1_PO       81
  4601. TREATY_PO       82
  4602. OCEAN_PO        83
  4603. ICE_PO          84
  4604. COAST_PO        85
  4605. ICE_WATER_PO    86
  4606. SEA_WALL_PO     87
  4607. DATE_LINE_PO    88
  4608. ADMIN2_PO       89
  4609. SINGLE_RR       90
  4610. MULTI_RR        91
  4611. LIGHT_RR        92
  4612. CON_RR          93
  4613. ADMIN3_PO       94
  4614. SPECIAL_PO      95
  4615. DISPUTED_PO     96
  4616. DEPTH_200M_OF   97
  4617. DEPTH_1000M_OF  98
  4618. DEPTH_2000M_OF  99
  4619. POWER_UT       100
  4620. PHONE_UT       101
  4621. EX_PIPES_UT    102
  4622. UN_PIPES_UT    103
  4623. DEPTH_3000M_OF 104
  4624. DEPTH_4000M_OF 105
  4625. DEPTH_5000M_OF 106
  4626. DEPTH_6000M_OF 107
  4627. DEPTH_7000M_OF 108
  4628. CONT_SHELF_OF  109
  4629. TEC_PLATES_OF  110
  4630. CITY_0         111
  4631. CITY_1         112
  4632. CITY_10        113
  4633. CITY_100       114
  4634. CITY_BIG       115
  4635. LAND_COVER_TXT 116
  4636. POLITICAL_TXT  117
  4637. COUNTRIES_TXT  118
  4638. POP_PLACES_TXT 119
  4639.  
  4640. APPENDIX C - PEN DEFINITONS
  4641. For additional flexibility during plotting, MAPIT provides override 
  4642. access to internal definitions of pen assignments, line type and width 
  4643. assignments, and plot border and lat/long grids assignments via the pen 
  4644. definition file.  The standard definitions are outlined in the default file 
  4645. std.pen shown below. Change a copy and invoke MAPIT with the 
  4646. command line calling parameter /pendefinition=my_file to customize 
  4647. your plotting operations.
  4648. The standard pen color assignments given by The HP-GL/2 Reference 
  4649. Guide are as follows.  They may not be reflected in your plotting 
  4650. hardware/software implementation.  Certainly if you have a real pen 
  4651. plotter with physical pens, you are free to put whatever colors you 
  4652. desire in whatever holders.
  4653.  
  4654. Pen
  4655. Color
  4656.  
  4657. Pen
  4658. Color
  4659. 0
  4660. white
  4661.  
  4662. 4
  4663. yellow
  4664. 1
  4665. black
  4666.  
  4667. 5
  4668. blue
  4669. 2
  4670. red
  4671.  
  4672. 6
  4673. magenta
  4674. 3
  4675. green
  4676.  
  4677. 7
  4678. cyan
  4679.  
  4680.  
  4681. ; Std.pen  -  This file reflects the default internal HP-GL/2 pen plotting
  4682. ;             settings of MAPIT.  Copy and change to your liking invoking
  4683. ; with:
  4684. ;         MAPIT /pendefinition=file_name.pen
  4685.  
  4686. ; Video Color is the index into this table meaning that the MAPIT layer
  4687. ; (color) determines the pen, width, and line type according to this table
  4688. ; when making HP-GL/2 plots.
  4689.  
  4690. ; MAPIT doesn't allow reassigning the default color associated with pens. 
  4691. ; If pen 2 defaults to red on your output device, that is the color you
  4692. ; are stuck with.  Sorry, no robin's egg blue.
  4693.  
  4694. ; 0.1 mm is supposed to be narrowest width.  0 may be narrower on some
  4695. ; devices.
  4696.  
  4697. ; Some devices support 8 pens.  MAPIT allows 16.
  4698.  
  4699. ; Line type 0 is a solid line.  Types 1 - 8 are variously dashed and are
  4700. ; device dependent.
  4701.  
  4702. ; Video Color  Pen #   Width in mm.   Line type   Video to pen color
  4703.  
  4704.         0       0       0               0       ; black to black (white)
  4705.         1       5       0               0       ; blue to blue
  4706.         2       3       0               0       ; green to green
  4707.         3       7       0               0       ; cyan to cyan
  4708.         4       2       0               0       ; red to red
  4709.         5       6       0               0       ; magenta to magenta
  4710.         6       4       0               0       ; brown to yellow
  4711.         7       1       0               0       ; white to black
  4712.         8       1       0               0       ; gray to black
  4713.         9       5       0               0       ; light blue to blue
  4714.         10      3       0               0       ; light green to green
  4715.         11      7       0               0       ; light cyan to cyan
  4716.         12      2       0               0       ; light red to red
  4717.         13      6       0               0       ; light magenta to magenta
  4718.         14      4       0               0       ; yellow to yellow
  4719.         15      1       0               0       ; bright white to black
  4720.  
  4721.  
  4722. ;  The plotting characteristics of MAPIT's lat/long grid and print borders
  4723. ;  can be specified independently of the standard assignments in the above
  4724. ;  table for raster devices.
  4725.  
  4726.         gridpen=1       ; Specifies pen color only.
  4727.         gridwidth=0             
  4728.         GridType=5
  4729.  
  4730.         borderpen=1     ; Specifies pen color only.
  4731.         borderwidth=0.5
  4732.         bordertype=0
  4733.  
  4734. APPENDIX E - STANDARD LAT/LON NOTATION
  4735. MAPIT, MP1TOMP3, GARTODBF, and other MAPIT utilities use the 
  4736. standard lat/lon notation defined below, basically a latitude followed by 
  4737. a longitude in free or fixed format.
  4738. Fixed Latitude Formats:
  4739. DDMM.mmm
  4740. 2316N
  4741. DDMMSS.sss
  4742. 133947.6642 S
  4743. Fixed Longitude Formats:
  4744. DDDMM.mmm
  4745. 12318.002
  4746. DDDMMSS.sss
  4747. -0042200
  4748. Free Formats:
  4749. [D]DD.ddd
  4750. 42.667
  4751. [D]DD:MM.mmm
  4752. 101:40 W
  4753. [D]DD:MM:SS.sss
  4754. S  16:0:3.5
  4755. Note: any number of places to the right of the decimal may be used. The 
  4756. numeric string may be preceded by an option Indicator I or - or followed 
  4757. by an I. See definitions below.
  4758. Fixed formats refer not to character positions on a line, but to the 
  4759. relationship of a part of a token with its starting character.  (A fixed 
  4760. format of 4 characters means that a particular part of  a latitude must 
  4761. be four characters wide, not that it must be the fourth character in the 
  4762. line.)
  4763. In those cases in which input is taken from a text file (MP1TOMP3) a 
  4764. latitude/longitude pair is expected on each line.  In fact, the pairs may 
  4765. be given in reverse order (longitude first) if that fact is unambiguously 
  4766. apparent and in a number of different formats.  The latitude/longitude 
  4767. pair can be placed anywhere on any given line as long as they appear as 
  4768. the first two non-blank tokens.
  4769.  
  4770. I
  4771. -
  4772. Indicator.  'N' or 'S' for latitude.  'E' or 'W' for longitude. 
  4773. Case insensitive.  Indicators are optional and may be 
  4774. preceded and/or followed by optional white space (blank 
  4775. and tab characters). Indicators are themselves optional and 
  4776. may precede or follow a number but may not both precede 
  4777. and follow the same number. (Coordinates of the form 
  4778. N12E34 are legal, however, because the second indicator, 
  4779. 'E', acts as a separator and is interpreted as preceding the 
  4780. second number.
  4781. -
  4782. -
  4783. The minus sign may be used to indicate either 'S' or 'W'. If 
  4784. used, it must always precede and never follow the number it 
  4785. modifies.  Whereas indicators imply latitude or longitude, 
  4786. the minus sign implies neither and may not be used in 
  4787. combination with an indicator.
  4788. D
  4789. -
  4790. Degrees.
  4791. M
  4792. -
  4793. Minutes.
  4794. S
  4795.  
  4796. Seconds.
  4797. ;
  4798. -
  4799. The comment character causes all following characters on 
  4800. the line to be ignored.  If placed first, the line is as if it 
  4801. didn't exist thus preserving the continuity of a 
  4802. multisegmented line.
  4803. If no indicator or no fixed format describes or implies which of the pair 
  4804. is the latitude and which the longitude, latitude is assumed to be first.  
  4805. Inconsistent indicators or fixed formats generate error messages.
  4806. N pairs of coordinates, each on a line of a file, yield n - 1 line segments.  
  4807. Lines are terminated by one or more blank input lines.  (See ';' above. 
  4808. Actual creation of a line takes place in MP1TOMP3.)  Thus 100 points 
  4809. with a blank line between the 10th and 11th points will yield two lines 
  4810. in a .MP1 file, the first with 9 segments and the second with 89. 
  4811. Terrible Data Examples:
  4812.  
  4813. ;  From file special.pt
  4814. 39.807655 -91.049645 
  4815. N3948.4831 W09102.9837
  4816. 3948.5255NW09102.9713
  4817. 3948.5390N W09103.0006
  4818. 3948.5275N 09103.0002W
  4819. N  3948.5422W  09103.0565
  4820. N 3948.5472 09103.1256 W
  4821. N 3948.5275 W 09103.1252
  4822. 3948.5005 -09103.1128
  4823. 3948.4767-09103.0336
  4824. N39:48.4774 W091:03.0336
  4825. 39:48.0034N 091:02.9576W
  4826. 39:46.9837 N  091:03.9729  W
  4827. N39:46:51.774 -91:03:53.652     ;N3946.8629 W09103.8942
  4828. 394658.734 -0910359.832     ; N3946.9789 W09103.9972
  4829.  
  4830. INDEX
  4831.  
  4832. <Enter>, 7
  4833. <Esc>, 6
  4834. <Tab>, 7, 27
  4835. Arrow Keys, 6
  4836. City, txt_offset, 15
  4837. Clock Reset, GPS, 83
  4838. Color numbers, 12, 40
  4839. COM Pin Connections, 87
  4840. Database, 30, 32
  4841. dBASE Editor, 22, 38
  4842. dBASE File Format, GPS, 85
  4843. Definition File
  4844. GEOCODE, 59
  4845. GEOTOENT, 67
  4846. GEOTOMP1, 73
  4847. pen, 112
  4848. SIMULATE, 98
  4849. Distance, 27, 29
  4850. E_Type, 22
  4851. Edit DBF Entities, 38
  4852. Extended Files, 41
  4853. Features, 49, 108
  4854. Features Display, 49
  4855. FIGEDIT, 54
  4856. File Names and Conventions, 
  4857. 50
  4858. Fonts, 45
  4859. Fracture Zones, 50
  4860. Gazetteer, 32
  4861. GEOCODE, 58
  4862. Geocoding, 11
  4863. Geosynchronous, 101
  4864. GEOTOENT, 66
  4865. GEOTOMP1, 72
  4866. Goose.sim, 104
  4867. GPS, 80
  4868. GPS Markers, 35
  4869. Great Circles, 8, 27, 29, 61, 72, 
  4870. 99
  4871. Help, DOS command line, 9
  4872. HP-GL/2, 5, 33, 112
  4873. Lat/Lon, Standard Notation, 
  4874. 114
  4875. Layers, 39, 109
  4876. Line of Sight, 29
  4877. Magnetic Lineations, 50
  4878. MAPIT
  4879. auxiliary files, 12
  4880. command line, 19
  4881. computer requirements, 2
  4882. copy, 48
  4883. gotcha's, 16
  4884. problems and solutions, 16
  4885. tips, 18
  4886. tools, 27
  4887. utilities, 8
  4888. Maps, making, 4
  4889. Marker Trails, 36
  4890. Mercator, 27
  4891. mktime() function, 100
  4892. Mouse
  4893. installing in W3.1, 4
  4894. left button, 7
  4895. use, 5
  4896. MP1TOMP3, 89
  4897. NMEA 0183, 35, 87, 93
  4898. NMETOMP1, 91
  4899. Orbits.sim, 106
  4900. PCX, 5, 34, 37
  4901. Period, 101
  4902. Pins, sticking into a map, 9
  4903. Plate Boundaries, 50
  4904. Plotting, 5, 33
  4905. Position Menu, 7, 26
  4906. Private Files, 41
  4907. Prune, 84, 91
  4908. Regions, 52
  4909. Register PCX, 37
  4910. Rhumb, 27, 72, 99
  4911. Scale, 25, 50, 56
  4912. Scan Table, 10, 20
  4913. Scatter Diagrams, 15
  4914. Script File, SIMULATE, 98
  4915. SET TZ, 2
  4916. Sidereal Day, 101
  4917. SIMULATE, 97
  4918. Standard World, 26
  4919. Status
  4920. Bottom Status Line, 6
  4921. Header Status Field, 6
  4922. Style
  4923. new style entities, 38
  4924. old style entities, 41
  4925. old vs. new, 13
  4926. Tiles, 23
  4927. Time Zone, 2
  4928. Tracking, 11
  4929. Type Face, 45
  4930. USAir.sim, 105
  4931. Windows 3.1, 3
  4932. Windows 95, 3
  4933. Xline, 44
  4934. Zoom, 24
  4935.